From 31fd5bbc08234686cf798a93a18e0bb73615d1bf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 1 Sep 2023 22:27:30 +0200 Subject: rename entity -> object --- editor/editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/editor.cpp') diff --git a/editor/editor.cpp b/editor/editor.cpp index a1de4b4f..9d283da0 100644 --- a/editor/editor.cpp +++ b/editor/editor.cpp @@ -110,7 +110,7 @@ void editor::on_click_(world& world, global_coords pos, button b) default: break; case button::place: if (const auto& sel = mode->get_selected()) - if (auto [ch, t] = world[pos]; ch.can_place_entity(sel.proto, pos.local())) + if (auto [ch, t] = world[pos]; ch.can_place_object(sel.proto, pos.local())) mode->place_tile(world, pos, sel, *_app); break; case button::remove: -- cgit v1.2.3