From: Christian Heller Date: Sat, 5 Mar 2016 12:26:40 +0000 (+0100) Subject: Server: Update worldstate during any turn change -> be more responsive. X-Git-Tag: tce~90 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/tasks?a=commitdiff_plain;h=96d30b59368f81d9813382785029a10176c94235;p=plomrogue Server: Update worldstate during any turn change -> be more responsive. --- diff --git a/server/world.py b/server/world.py index 21d5f67..ff8043e 100644 --- a/server/world.py +++ b/server/world.py @@ -67,6 +67,8 @@ def turn_over(): from server.config.misc import calc_effort from server.update_map_memory import update_map_memory from server.thingproliferation import thingproliferation + from server.io import try_worldstate_update + from server.config.io import io_db id = 0 while world_db["Things"][0]["T_LIFEPOINTS"]: proliferable_map = world_db["MAP"][:] @@ -101,3 +103,5 @@ def turn_over(): Thing["T_PROGRESS"] = 0 thingproliferation(Thing, proliferable_map) world_db["TURN"] += 1 + io_db["worldstate_updateable"] = True + try_worldstate_update()