summaryrefslogtreecommitdiffhomepage
path: root/editor/editor.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-09 16:17:23 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-09 16:17:23 +0100
commit1febb02d958fa4cf8c15e3ca18f9d644f9fc80fb (patch)
treed9b389f6c2ff8e031bd70d503c289bcfddf2f048 /editor/editor.cpp
parent09605450ecc99ad1f4d50e9c143fda6c7762e702 (diff)
depth buffer works!
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 9676a22d..1bba44d6 100644
--- a/editor/editor.cpp
+++ b/editor/editor.cpp
@@ -82,7 +82,7 @@ void editor::on_mouse_move(world& world, global_coords& pos, int mods)
void editor::on_click_(world& world, global_coords pos, button b)
{
if (auto* mode = current_tile_editor(); mode != nullptr)
- if (auto opt = mode->get_selected(); opt)
+ if (auto opt = mode->get_selected(); opt || b == button::remove)
{
switch (b)
{