summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-24 00:49:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-24 00:49:19 +0200
commit203701d221b5f982abf44379ce738f76e0db027a (patch)
tree00312e10c24af555065feba863b0b323a736f92d /editor/update.cpp
parent00ca30257d85dfe2c95040d4e3c30741e2872387 (diff)
a
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp6
1 files changed, 4 insertions, 2 deletions
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();
}