From 8d0c254f45f3754142996d45434a67ec7ebc5dd9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 25 Feb 2024 19:20:29 +0100 Subject: 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. --- editor/tests/region-test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor/tests/region-test.cpp') 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, }; -- cgit v1.2.3