Skip to content

Commit

Permalink
Small improvement in Game::movement method.
Browse files Browse the repository at this point in the history
  • Loading branch information
przemek83 committed Oct 4, 2024
1 parent d7ddb11 commit 6473e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ const Tank& Game::getPlayerTank(const std::list<Tank>& tanks)

void Game::movement(Tank& tank, Map& map, Direction direction)
{
const int tileSize{Config::getInstance().getTileSize()};
tank.setDirection(direction);

const int tileSize{Config::getInstance().getTileSize()};
map.tagAreaAsChanged(tank.getLocation(),
{tank.getX() + tileSize, tank.getY() + tileSize});

Expand Down

0 comments on commit 6473e0a

Please sign in to comment.