Fix animation
This commit is contained in:
parent
e16d44cd23
commit
2398bf9c36
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue