From 23eae734c5e8a49c02e48fe0b401d610abfee9c8 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 15 Mar 2023 15:43:59 +0100 Subject: a --- editor/update.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index 24fd3086..dd985b88 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -69,7 +69,7 @@ void app::do_mouse_up_down(std::uint8_t button, bool is_down, int mods) if (button == mouse_button_left) { if (auto* cl = find_clickable_scenery(*cursor.pixel)) - return (void)cl->e->activate(cl->e->iter(), cl->e->chunk()); + return (void)cl->e->activate(cl->e->iter()); } // TODO it should open on mouseup if still on the same item as on mousedown else if (button == mouse_button_right) @@ -110,7 +110,7 @@ void app::do_rotate(bool backward) auto r = backward ? e.atlas->prev_rotation_from(e.r) : e.atlas->next_rotation_from(e.r); if (r != e.r) { - e.rotate(e.iter(), e.chunk(), r); + e.rotate(e.iter(), r); e.chunk().mark_scenery_modified(); } } @@ -192,7 +192,7 @@ void app::update_world(float dt) { auto iter = es.cbegin() + std::ptrdiff_t(i); auto& e = *es[i]; - c.with_scenery_update(e, [&] { return e.update(iter, c, dt); }); + c.with_scenery_update(e, [&] { return e.update(iter, dt); }); } } } -- cgit v1.2.3