]> Untitled Git - axy/ft/pacman.git/commitdiff
Fix
authorAxy <gilliardmarthey.axel@gmail.com>
Sat, 29 Aug 2026 11:40:40 +0000 (13:40 +0200)
committerAxy <gilliardmarthey.axel@gmail.com>
Sat, 29 Aug 2026 11:40:40 +0000 (13:40 +0200)
src/pacman/input.py

index 5c94f89ee57d2ddaa5162baf09ea468ac63d513a..8675046e1c834d10c7ca09197fddd1911846370a 100644 (file)
@@ -75,6 +75,7 @@ class GameInput(Input):
             self.next_move = (1, 0)
         if self.player.can_move() and self.next_move:
             self.player.go_to(self.next_move)
+            self.next_move = None
 
     @override
     def get_event(self, event: pygame.event.Event) -> None: