From d49987db61d3456bcb623fa795b87e629b819d7f Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 7 Mar 2015 05:41:18 +0100 Subject: [PATCH] Server/py: Ensure SEED_MAP is called after MAP_LENGTH. --- plomrogue-server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index be83c6a..78cf88c 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -204,8 +204,10 @@ def save_world(): string = "" for key in world_db: - if dict != type(world_db[key]) and key != "MAP": + if dict != type(world_db[key]) and key != "MAP" and \ + key != "WORLD_ACTIVE" and key != "SEED_MAP": string = string + key + " " + str(world_db[key]) + "\n" + string = string + "SEED_MAP " + str(world_db["SEED_MAP"]) + "\n" string = string + helper("ThingActions", "TA_ID") string = string + helper("ThingTypes", "TT_ID", {"TT_CORPSE_ID": False}) for id in world_db["ThingTypes"]: -- 2.30.2