From 203701d221b5f982abf44379ce738f76e0db027a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 24 Oct 2022 00:49:19 +0200 Subject: a --- editor/update.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'editor/update.cpp') diff --git a/editor/update.cpp b/editor/update.cpp index 579d640e..affcff57 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -1,6 +1,8 @@ #include "app.hpp" #include "src/chunk.hpp" #include "src/tile-atlas.hpp" +#include "main/floormat-events.hpp" +#include "main/floormat-main.hpp" namespace floormat { @@ -29,8 +31,8 @@ void app::make_test_chunk(chunk& c) void app::do_mouse_click(const global_coords pos, int button) { - if (button == mouse_button_event) - _editor.on_click(_world, pos); + if (button == mouse_button_left) + _editor.on_click(M->world(), pos); else _editor.on_release(); } -- cgit v1.2.3