From 4251d32844db32330942ed49b38b28aad5dcc34e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Feb 2023 21:25:51 +0100 Subject: collision bbox WIP --- src/chunk-bbox.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/chunk-bbox.cpp') 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 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(collision_bbox::BB(bbox)); -#else _bboxes.push_back(bbox); auto* ptr = &_bboxes.back(); -#endif switch (bbox.pass_mode) { -- cgit v1.2.3