Fix animation

This commit is contained in:
Corentin Jabot 2021-06-16 13:18:05 +02:00
parent e16d44cd23
commit 2398bf9c36
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ void PacMan::updateAnimationPosition(std::chrono::milliseconds time_delta) {
}
void PacMan::updateMazePosition(std::chrono::milliseconds time_delta, const Board & board) {
float position_delta = std::min(1.0, (time_delta.count() / 128.0));
float position_delta = time_delta.count() / 128.0;
// Handle teleport
if (pos.x >= COLUMNS - 1 && direction == Direction::RIGHT) {