bugfix
This commit is contained in:
parent
431dadacbc
commit
d2114e1ba6
@ -14,9 +14,9 @@ class Waiter(pygame.sprite.Sprite):
|
||||
# Borders
|
||||
def move(self, x, y):
|
||||
if self.matrix.walk_through(self.X + x, self.Y + y) == 1:
|
||||
if 0 <= self.X + x <= 14:
|
||||
if 0 <= self.X + x < 14:
|
||||
self.X += x
|
||||
if 0 <= self.Y + y <= 15:
|
||||
if 0 <= self.Y + y < 15:
|
||||
self.Y += y
|
||||
|
||||
def update(self, event):
|
||||
|
Loading…
Reference in New Issue
Block a user