From 3d7ae4c401d5bd6109a7fd25eb22e5bc77f0a4aa Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 3 Mar 2023 19:40:11 +0100 Subject: src: rework scenery updates --- editor/update.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index e784ef86..16a155f3 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -205,7 +205,7 @@ void app::update_world(float dt) for (std::int16_t x = minx; x <= maxx; x++) for (auto& c = world[chunk_coords{x, y}]; auto [x, k, pt] : c) if (auto sc = x.scenery(); sc && sc.can_activate()) - c.with_scenery_bbox_update(sc.index(), [&] { return sc.update(dt); }); + c.with_scenery_update(sc.index(), [&] { return sc.update(dt); }); } void app::set_cursor() -- cgit v1.2.3