Skip to content

Commit

Permalink
Remove not needed if.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Oct 9, 2024
1 parent 4bcda79 commit f32bf0d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ void Game::movement(Tank& tank, Direction direction)
Point newPoint{newX, newY};
if (canDrive(newPoint, direction))
{
if (tank.isPlayerControlled())
map_.shift(newPoint, direction);
map_.shift(newPoint, direction);
tank.move(newPoint);
tagAreaAsChanged(tank, tileSize);
}
Expand Down

0 comments on commit f32bf0d

Please sign in to comment.