Skip to content

Commit

Permalink
d
Browse files Browse the repository at this point in the history
  • Loading branch information
sthalik committed Aug 29, 2024
1 parent 64261c9 commit ce1e52b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/chunk-collision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ void filter_through_holes(Chunk_RTree& rtree, object_id id, Vector2 min, Vector2
} // namespace

#if 1
bool chunk::find_hole_in_bbox(CutResult<float>::rect& hole, Chunk_RTree& rtree, Vector2 min, Vector2 max)
bool chunk::find_hole_in_bbox(CutResult<float>::rect& hole, const Chunk_RTree& rtree, Vector2 min, Vector2 max)
{
bool ret = true;
rtree.Search(min.data(), max.data(), [&](uint64_t data, const Chunk_RTree::Rect& r) {
Expand Down
1 change: 0 additions & 1 deletion src/chunk-walls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "shaders/shader.hpp"
#include <cr/ArrayViewStl.h>
#include <cr/GrowableArray.h>
#include <cr/Pair.h>
#include <cr/Optional.h>
#include <algorithm>
#include <ranges>
Expand Down
3 changes: 1 addition & 2 deletions src/chunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "local-coords.hpp"
#include "src/RTree-fwd.h"
#include "global-coords.hpp"
#include "wall-defs.hpp"
#include "search-pred.hpp"
#include "hole-cut.hpp"
#include <array>
Expand Down Expand Up @@ -98,7 +97,7 @@ class chunk final

[[nodiscard]] bool can_place_object(const object_proto& proto, local_coords pos);
[[nodiscard]] bool find_hole_in_bbox(CutResult<float>::rect& hole, Vector2 min, Vector2 max);
[[nodiscard]] static bool find_hole_in_bbox(CutResult<float>::rect& hole, Chunk_RTree& rtree, Vector2 min, Vector2 max);
[[nodiscard]] static bool find_hole_in_bbox(CutResult<float>::rect& hole, const Chunk_RTree& rtree, Vector2 min, Vector2 max);

void on_teardown();
bool is_teardown() const;
Expand Down

0 comments on commit ce1e52b

Please sign in to comment.