From: Christian Heller Date: Sat, 7 Mar 2015 04:41:18 +0000 (+0100) Subject: Server/py: Ensure SEED_MAP is called after MAP_LENGTH. X-Git-Tag: tce~387 X-Git-Url: https://plomlompom.com/repos/?a=commitdiff_plain;h=d49987db61d3456bcb623fa795b87e629b819d7f;p=plomrogue Server/py: Ensure SEED_MAP is called after MAP_LENGTH. --- 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"]: