From da7c9b8eec0eabb9928731857920237af6d1af4e Mon Sep 17 00:00:00 2001 From: moonleay Date: Tue, 3 Dec 2024 13:46:50 +0100 Subject: [PATCH] fix: fixed space error --- main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.cpp b/main.cpp index 46ff50c..88622af 100644 --- a/main.cpp +++ b/main.cpp @@ -85,7 +85,6 @@ vector move_player(vector player_pos, char input) // Check if it is possible to move player to target pos if (can_move_player(player_pos, -1, 0)) --player_pos[1]; - // Actually move player break; case 's': // Check if it is possible to move player to target pos @@ -140,7 +139,7 @@ void render_play_field(const vector player_pos) { // ... render ... if (i == player_pos[0] && j == player_pos[1]) - cout << "S "; // ... 'S' if it is the entry where the player is currently + cout << "S"; // ... 'S' if it is the entry where the player is currently else cout << play_field[i][j]; // ... the actual entry of the field }