diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-26 16:00:11 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-26 16:00:11 +0100 |
commit | c145f1f806b49c1edd4b53aeeb7865c506d67949 (patch) | |
tree | 8d507da9436fdc837538d17de9a9dc076aa84f67 /editor | |
parent | 0e78cc0bef93f4b89a6a187e11c6c9be1e385352 (diff) |
editor: whitespace
Diffstat (limited to 'editor')
-rw-r--r-- | editor/draw.cpp | 6 |
1 files 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_ |