summaryrefslogtreecommitdiffhomepage
path: root/editor/draw.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/draw.cpp')
-rw-r--r--editor/draw.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp
index 0b469380..bd0d863d 100644
--- a/editor/draw.cpp
+++ b/editor/draw.cpp
@@ -60,7 +60,7 @@ void app::draw_cursor()
const auto offset = Vector3i(Vector2i(sel.offset), 0);
const auto pos = cursor.tile->to_signed3()*iTILE_SIZE + offset;
auto [ch, t] = w[*cursor.tile];
- if (!ch.can_place_entity(sel, cursor.tile->local()))
+ if (!ch.can_place_object(sel, cursor.tile->local()))
shader.set_tint({1, 0, 1, 0.5f});
anim_mesh.draw(shader, *sel.atlas, sel.r, sel.frame, Vector3(pos), 1);
}