summaryrefslogtreecommitdiffhomepage
path: root/editor/draw.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-02-24 10:54:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-02-24 11:00:57 +0100
commit321b394c397f826dbbda6e617aece10e732daadc (patch)
tree224da7e085ced9773ab86128b9249a01c7186623 /editor/draw.cpp
parente9311fe8a12d7834b0d910edd65eacc5e732a0ff (diff)
fix (?) wrong global_coords unsigned offset
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r--editor/draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp
index 32319c1b..baf7f135 100644
--- a/editor/draw.cpp
+++ b/editor/draw.cpp
@@ -135,7 +135,7 @@ clickable_scenery* app::find_clickable_scenery(const Optional<Vector2i>& pixel_)
item = &c;
}
}
- if (item && item->item.can_activate(item->atlas))
+ if (item)
return item;
else
return nullptr;