From 96d30b59368f81d9813382785029a10176c94235 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 5 Mar 2016 13:26:40 +0100 Subject: [PATCH] Server: Update worldstate during any turn change -> be more responsive. --- server/world.py | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.30.2