summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-04-06 23:49:36 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-04-06 23:49:50 +0200
commit9cc74826f71bfc08595ff93ac931c751f52c833c (patch)
treeadb0e7a933b912e0626cd5c353f5fb7fb7baabe0 /editor
parent24e66df509be980d333c12cbd9782396daac156b (diff)
editor: don't draw collision boxes for passable ground tiles
Diffstat (limited to 'editor')
-rw-r--r--editor/draw.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp
index 645708e4..63bc02e8 100644
--- a/editor/draw.cpp
+++ b/editor/draw.cpp
@@ -137,6 +137,11 @@ void app::draw_collision_boxes()
#if 1
if (x.tag == (uint64_t)collision_type::geometry)
return true;
+#else
+ if (x.tag == (uint64_t)collision_type::geometry)
+ if (x.pass == (uint64_t)pass_mode::pass)
+ if (x.data < TILE_COUNT*2+1)
+ return true;
#endif
Vector2 start(rect.m_min[0], rect.m_min[1]), end(rect.m_max[0], rect.m_max[1]);
auto size = (end - start);