diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-29 17:45:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-29 17:45:42 -0300 |
commit | a4eee47265e06d302fc482e68a2abcdd6cd97c81 (patch) | |
tree | e0ebe39c16caff20be0dcd8be3651e62ad15b222 /game/misc.rpy | |
parent | 7da62b659852c0b30d622f09fe98ed323f29a6d2 (diff) | |
download | client-a4eee47265e06d302fc482e68a2abcdd6cd97c81.tar.gz client-a4eee47265e06d302fc482e68a2abcdd6cd97c81.tar.bz2 client-a4eee47265e06d302fc482e68a2abcdd6cd97c81.tar.xz client-a4eee47265e06d302fc482e68a2abcdd6cd97c81.zip |
Add "foreground" attribute to wait_packet.
This prevents AP Timer from pausing main game from a thread (race condition)
Diffstat (limited to 'game/misc.rpy')
-rw-r--r-- | game/misc.rpy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/misc.rpy b/game/misc.rpy index a37d779..27659dc 100644 --- a/game/misc.rpy +++ b/game/misc.rpy @@ -299,7 +299,7 @@ image spinner: init python: def ap_restore(): # Request AP Data from websocket - raw=send_packet("apdata") + raw=send_packet("apdata", fg=False) apdata=json_decode(raw) try: Player["ap"]=apdata["ap"] |