aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game/game.cpp b/src/game/game.cpp
index 2eef4cf..064b643 100644
--- a/src/game/game.cpp
+++ b/src/game/game.cpp
@@ -285,6 +285,11 @@ auto Game::_move_cursor(const Vector2 &direction) noexcept -> bool
return false;
}
+ if (dest_position.get_y() < 1)
+ {
+ return false;
+ }
+
_cursor_controller->move_to(dest_position);
return true;