From c75299e1527ecdac8ec8bdefffaf335a8105f56b Mon Sep 17 00:00:00 2001 From: XsedoX Date: Tue, 5 Apr 2022 15:38:26 +0200 Subject: [PATCH] poprawki field.py --- logic/field.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/logic/field.py b/logic/field.py index b3a7c78..5f4c7d6 100644 --- a/logic/field.py +++ b/logic/field.py @@ -17,5 +17,7 @@ class Field(pygame.sprite.Sprite): if self.texture_path == 'water.png' or self.texture_path == 'grass_with_tree.jpg': self.busy = True - def step_onto(self, obj):#ustawia objekt na srodku pola + def step_onto(self, obj): # ustawia objekt na srodku pola obj.rect = obj.clamp(self.rect) + self.busy = True + obj.update()