Commit d8075d34 authored by Constantin's avatar Constantin

stuff

parent 079661b2
......@@ -119,9 +119,9 @@ class Player(Thing):
dy, dx = directionOffsets.get(direction[0])
target = self.field.neighbor(dy=dy, dx=dx)
if target is None or not target.isWalkable():
self.send(obstinacyTable[self.obstinacy])
self.obstinacy += 1
if self.obstinacy < len(obstinacyTable):
self.send(obstinacyTable[self.obstinacy])
self.obstinacy += 1
return
else: # final message, do it
while target is not None and not target.isWalkable():
......
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