summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-collision.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-07-24 08:51:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-07-27 12:33:03 +0200
commit7508db41ed056a50b36656dd73aafcaa9e43f6e2 (patch)
treee86ab0a9169c24cc157ca2df9185ab856c662fe7 /src/chunk-collision.cpp
parent52d691bf472f57670bc8c9140f35d562340bb894 (diff)
rename some collision_data members to be more descriptive
Diffstat (limited to 'src/chunk-collision.cpp')
-rw-r--r--src/chunk-collision.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-collision.cpp b/src/chunk-collision.cpp
index c7f38028..45ae425f 100644
--- a/src/chunk-collision.cpp
+++ b/src/chunk-collision.cpp
@@ -72,7 +72,7 @@ bool find_hole_in_bbox(CutResult<float>::rect& hole, chunk::RTree& rtree, Vector
bool ret = true;
rtree.Search(min.data(), max.data(), [&](uint64_t data, const chunk::RTree::Rect& r) {
auto x = std::bit_cast<collision_data>(data);
- if (x.pass == (uint64_t)pass_mode::pass && x.tag == (uint64_t)collision_type::none)
+ if (x.pass == (uint64_t)pass_mode::pass && x.type == (uint64_t)collision_type::none)
{
CutResult<float>::rect holeʹ {
.min = { r.m_min[0], r.m_min[1] },