summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/misc.rpy7
1 files changed, 6 insertions, 1 deletions
diff --git a/game/misc.rpy b/game/misc.rpy
index 0471dc8..ab08095 100644
--- a/game/misc.rpy
+++ b/game/misc.rpy
@@ -311,6 +311,8 @@ init python:
global ApTimer, Player
running=False
+ # FIXME ApTimer might not have been started =/
+ # And in overall is horrible and a waste of resources
if (Player["ap"] < Player["max_ap"]):
running=True
@@ -324,7 +326,10 @@ init python:
ApTimer.daemon=True
ApTimer.start()
if (running and Player["ap"] >= Player["max_ap"]):
- ApTimer.cancel()
+ try:
+ ApTimer.cancel()
+ except:
+ pass
return