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 /src/object.cpp | |
| parent | 52d691bf472f57670bc8c9140f35d562340bb894 (diff) | |
rename some collision_data members to be more descriptive
Diffstat (limited to 'src/object.cpp')
| -rw-r--r-- | src/object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/object.cpp b/src/object.cpp index 449a0fcb..1679f5b7 100644 --- a/src/object.cpp +++ b/src/object.cpp @@ -173,7 +173,7 @@ static bool do_search(class chunk* c, chunk_coords_ coord, bool ret = true; c->rtree()->Search(min.data(), max.data(), [&](object_id data, const auto& r) { auto x = std::bit_cast<collision_data>(data); - if (x.data != id && x.pass != (uint64_t)pass_mode::pass && + if (x.id != id && x.pass != (uint64_t)pass_mode::pass && rect_intersects(min, max, {r.m_min[0], r.m_min[1]}, {r.m_max[0], r.m_max[1]})) return ret = false; else |
