diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 21:25:51 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-24 21:25:51 +0100 |
| commit | 4251d32844db32330942ed49b38b28aad5dcc34e (patch) | |
| tree | dfd2611486456357f1ea06fcaeaefad185e46743 /src/chunk-bbox.cpp | |
| parent | fb0201967310fbaf4f6ddbeebb269acef8951363 (diff) | |
collision bbox WIP
Diffstat (limited to 'src/chunk-bbox.cpp')
| -rw-r--r-- | src/chunk-bbox.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/chunk-bbox.cpp b/src/chunk-bbox.cpp index b951da10..291056a8 100644 --- a/src/chunk-bbox.cpp +++ b/src/chunk-bbox.cpp @@ -47,10 +47,8 @@ void chunk::ensure_passability() noexcept _lqt_view->Clear(); std::vector<collision_bbox> bboxes; -#ifndef FLOORMAT_64 _bboxes.clear(); bboxes.reserve(TILE_COUNT*4); -#endif constexpr auto whole_tile = [](std::size_t k, pass_mode p) constexpr -> collision_bbox { auto start = tile_start(k); @@ -84,18 +82,12 @@ void chunk::ensure_passability() noexcept bboxes.push_back(wall_west(i, p)); } -#ifndef FLOORMAT_64 _bboxes.reserve(bboxes.size()); -#endif for (const collision_bbox& bbox : bboxes) { -#ifdef FLOORMAT_64 - auto* ptr = std::bit_cast<compact_bb*>(collision_bbox::BB(bbox)); -#else _bboxes.push_back(bbox); auto* ptr = &_bboxes.back(); -#endif switch (bbox.pass_mode) { |
