From f778317bae709f397345a2d5e04e23864c6391b3 Mon Sep 17 00:00:00 2001 From: HampusM Date: Tue, 7 Jun 2022 14:49:51 +0200 Subject: fix: index cursor x position from 0 --- src/game/game.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/game') 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; -- cgit v1.2.3-18-g5258