fix: fixed space error
This commit is contained in:
parent
bf435716e8
commit
da7c9b8eec
1 changed files with 1 additions and 2 deletions
3
main.cpp
3
main.cpp
|
@ -85,7 +85,6 @@ vector<int> move_player(vector<int> 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<int> 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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue