Fixed movement when moveTimeout is zero
This commit is contained in:
parent
d9a4750f7d
commit
3b294030f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user