From d2114e1ba629242a436f34fa7533efa983a3df15 Mon Sep 17 00:00:00 2001 From: s444427 Date: Fri, 3 Apr 2020 20:19:19 +0200 Subject: [PATCH] bugfix --- src/waiter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/waiter.py b/src/waiter.py index ccb53c6..b576242 100644 --- a/src/waiter.py +++ b/src/waiter.py @@ -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):