Fixed movement when moveTimeout is zero

This commit is contained in:
Marcin Kostrzewski 2020-05-17 01:30:38 +02:00
parent d9a4750f7d
commit 3b294030f4

View File

@ -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