summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-08 16:02:30 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-08 16:02:30 +0200
commit61136517c7dce8559634446e35cb3629cd40dcb9 (patch)
tree44aea3ffc37936a65f56031fe6a4222c23cc5e8e
parent3570e2f5aefdd0b5d262fe99ccd8b4a54aa79b83 (diff)
now enable more Z levels
-rw-r--r--editor/update.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/update.cpp b/editor/update.cpp
index 2ab34ccb..18cab4f7 100644
--- a/editor/update.cpp
+++ b/editor/update.cpp
@@ -100,7 +100,7 @@ void app::do_mouse_up_down(uint8_t button, bool is_down, int mods)
void app::do_mouse_scroll(int offset)
{
- _z_level = (int8_t)Math::clamp(_z_level + offset, 0, 2);
+ _z_level = (int8_t)Math::clamp(_z_level + offset, 0, (int)chunk_max_z);
}
void app::do_rotate(bool backward)