From 9cc74826f71bfc08595ff93ac931c751f52c833c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 6 Apr 2024 23:49:36 +0200 Subject: editor: don't draw collision boxes for passable ground tiles --- editor/draw.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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); -- cgit v1.2.3