diff options
Diffstat (limited to 'editor/update.cpp')
-rw-r--r-- | editor/update.cpp | 2 |
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) |