From 2e59e718e658304c1d3d0c9b96683e2043d4bcf9 Mon Sep 17 00:00:00 2001 From: Brosef Date: Tue, 24 Jun 2025 10:16:13 +0100 Subject: [PATCH] Added timeout ID check --- game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game.py b/game.py index e72fef5..80a0486 100644 --- a/game.py +++ b/game.py @@ -119,7 +119,7 @@ class Game(gameUtils.Game): self.timeout("FireDelay",randint(750,2000)/1000) self.playSound(self.gunCyclinderStop) - elif event.type == gameUtils.Timeout: + elif event.type == gameUtils.Timeout and event.timeoutID == 'FireDelay': self.shockScale += self.fire() #check if the user gets shot self.shockScale = min(self.shockScale, 1) #keeps shockScale in bounds