summaryrefslogtreecommitdiffhomepage
path: root/editor/editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-01 22:27:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-01 22:27:30 +0200
commit31fd5bbc08234686cf798a93a18e0bb73615d1bf (patch)
tree59b964d01885916c5d49fef3c168ff10dcbdd93f /editor/editor.cpp
parent053ea3aa1c443c368f8b43591e3e970e12b50c70 (diff)
rename entity -> object
Diffstat (limited to 'editor/editor.cpp')
-rw-r--r--editor/editor.cpp2
1 files changed, 1 insertions, 1 deletions
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: