Commit b132a177 authored by talljosh's avatar talljosh

Catch NoStationaryPointHere in player advance function, so that it doesn't break synchronisation.

parent e78dd09c5708
......@@ -720,6 +720,7 @@ class Player(Unit):
return (self.xVel, self.yVel)
def updateLivingPlayer(self):
from trosnoth.bots.pathfinding import NoStationaryPointHere
self.ghost_has_been_idle_for = 0
groundCollision = self.getGroundCollision()
......@@ -738,7 +739,11 @@ class Player(Unit):
if self.isStationary():
self.last_stationary_point =
self.last_stationary_point =
except NoStationaryPointHere as e:
log.warning(f'Player is stationary but point not in database: {e}')
def fixEdgeVelocity(self):
if isNear(self.yVel, 0):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment