summaryrefslogtreecommitdiffhomepage
path: root/editor/update.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/update.cpp')
-rw-r--r--editor/update.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 7c084a85..e9570208 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -108,11 +108,7 @@ void app::do_rotate(bool backward)
{
auto& e = *cl->e;
auto r = backward ? e.atlas->prev_rotation_from(e.r) : e.atlas->next_rotation_from(e.r);
- if (r != e.r)
- {
- e.rotate(e.index(), r);
- e.chunk().mark_scenery_modified();
- }
+ e.rotate(e.index(), r);
}
}
}
@@ -211,7 +207,7 @@ void app::set_cursor()
{
if (!cursor.in_imgui)
{
- if (auto* cl = find_clickable_scenery(cursor.pixel))
+ if ([[maybe_unused]] auto* cl = find_clickable_scenery(cursor.pixel))
M->set_cursor(std::uint32_t(Cursor::Hand));
else
M->set_cursor(std::uint32_t(Cursor::Arrow));