diff options
Diffstat (limited to 'main')
| -rw-r--r-- | main/editor.cpp | 2 | ||||
| -rw-r--r-- | main/editor.hpp | 2 | ||||
| -rw-r--r-- | main/update.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/main/editor.cpp b/main/editor.cpp index 4ee746fe..21a72aa0 100644 --- a/main/editor.cpp +++ b/main/editor.cpp @@ -132,7 +132,7 @@ editor::editor() { } -void editor::click_at_tile(const global_coords pos, int mouse_button) +void editor::maybe_place_tile(const global_coords pos, int mouse_button) { if (mouse_button == 0) { diff --git a/main/editor.hpp b/main/editor.hpp index 942185ac..c66ccff1 100644 --- a/main/editor.hpp +++ b/main/editor.hpp @@ -67,7 +67,7 @@ struct editor final tile_type& floor() { return _floor; } const tile_type& floor() const { return _floor; } - void click_at_tile(global_coords pos, int mouse_button); + void maybe_place_tile(global_coords pos, int mouse_button); editor(); editor(editor&&) noexcept = default; diff --git a/main/update.cpp b/main/update.cpp index 2321fe18..c726f542 100644 --- a/main/update.cpp +++ b/main/update.cpp @@ -18,7 +18,7 @@ void app::make_test_chunk(chunk& c) void app::do_mouse_click(const global_coords pos, int button) { - _editor.click_at_tile(pos, button); + _editor.maybe_place_tile(pos, button); } void app::update(double dt) |
