summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-20 22:39:14 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-20 22:42:11 +0200
commit9beb13e491f710d35b401b923c9b302f8d219b10 (patch)
tree6fba86a9e572fd2f9a9bbfc7d768440bf9da5093
parent8929cfd3e06bb25d2c9b47cafb7481a741028c27 (diff)
rename
-rw-r--r--main/editor.cpp2
-rw-r--r--main/editor.hpp2
-rw-r--r--main/update.cpp2
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)