From c145f1f806b49c1edd4b53aeeb7865c506d67949 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 26 Nov 2022 16:00:11 +0100 Subject: editor: whitespace --- editor/draw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/draw.cpp b/editor/draw.cpp index 5ee54863..93631820 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -44,15 +44,15 @@ void app::draw() clickable_scenery* app::find_clickable_scenery(Vector2i pixel_) { clickable_scenery* item = nullptr; + float depth = -1; + if (cursor.tile) { - float depth = -1; - auto array = M->clickable_scenery(); + const auto array = M->clickable_scenery(); const auto pixel = Vector2ui(pixel_); for (clickable_scenery& c : array) if (c.depth > depth && c.dest.contains(pixel)) { - const auto pos_ = pixel - c.dest.min() + c.src.min(); const auto pos = c.atlas.group(c.item.r).mirror_from.isEmpty() ? pos_ -- cgit v1.2.3