diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-24 08:51:25 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-07-27 12:33:03 +0200 |
| commit | 7508db41ed056a50b36656dd73aafcaa9e43f6e2 (patch) | |
| tree | e86ab0a9169c24cc157ca2df9185ab856c662fe7 /editor/draw.cpp | |
| parent | 52d691bf472f57670bc8c9140f35d562340bb894 (diff) | |
rename some collision_data members to be more descriptive
Diffstat (limited to 'editor/draw.cpp')
| -rw-r--r-- | editor/draw.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index f5a906d2..c88984af 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -139,9 +139,9 @@ void app::draw_collision_boxes() if (x.tag == (uint64_t)collision_type::geometry) return true; #endif - if (x.tag == (uint64_t)collision_type::geometry) + if (x.type == (uint64_t)collision_type::geometry) if (x.pass == (uint64_t)pass_mode::pass) - if (x.data < TILE_COUNT*2+1) + if (x.id < TILE_COUNT*2+1) return true; Vector2 start(rect.m_min[0], rect.m_min[1]), end(rect.m_max[0], rect.m_max[1]); auto size = (end - start); @@ -186,9 +186,9 @@ void app::draw_collision_boxes() if (x.tag == (uint64_t)collision_type::geometry) return true; #endif - if (x.tag == (uint64_t)collision_type::geometry) + if (x.type == (uint64_t)collision_type::geometry) if (x.pass == (uint64_t)pass_mode::pass) - if (x.data < TILE_COUNT*2+1) + if (x.id < TILE_COUNT*2+1) return true; Vector2 start(rect.m_min[0], rect.m_min[1]), end(rect.m_max[0], rect.m_max[1]); auto size = end - start; |
