From 3b294030f4fc0e658f0ffbde7c98925af05445ea Mon Sep 17 00:00:00 2001 From: Marcin Kostrzewski Date: Sun, 17 May 2020 01:30:38 +0200 Subject: [PATCH] Fixed movement when moveTimeout is zero --- src/entities/Player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entities/Player.py b/src/entities/Player.py index afda39f..3460892 100644 --- a/src/entities/Player.py +++ b/src/entities/Player.py @@ -118,7 +118,7 @@ class Player(Entity): :return: Returns true, if the movement has succeeded """ # Can move if timeout has elapsed - if self.movementTimer > self.moveTimeout: + if self.movementTimer >= self.moveTimeout: self.movementTimer = 0 self.movePoints += 1 # Movement