diff options
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r-- | editor/draw.cpp | 5 |
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); |