diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-25 19:20:29 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-25 19:20:29 +0100 |
commit | 8d0c254f45f3754142996d45434a67ec7ebc5dd9 (patch) | |
tree | 5ed904577967440cb7f9c37e9321d8f311f2f4d2 /editor | |
parent | bd2aa935bfc2b377481ca5900d0d89168a507eae (diff) |
remove cached pass_region from chunk
This wasn't well thought out because the regiojn gets dirtied after
every critter movement, even though it ignores critters by default.
Diffstat (limited to 'editor')
-rw-r--r-- | editor/tests/region-test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/editor/tests/region-test.cpp b/editor/tests/region-test.cpp index 907ea99c..47272593 100644 --- a/editor/tests/region-test.cpp +++ b/editor/tests/region-test.cpp @@ -152,10 +152,8 @@ void region_test::do_region_extraction(world& w, chunk_coords_ coord) { if (auto* c = w.at(coord)) { - chunk::pass_region r; - c->make_pass_region(r); result = { - .is_passable = r.bits, + .is_passable = c->make_pass_region().bits, .c = coord, .exists = true, }; |