From: Christian Heller Date: Sat, 28 Feb 2015 14:34:40 +0000 (+0100) Subject: Server/py: Fix writing out TT_CORPSE_ID commands to early to save file. X-Git-Tag: tce~450 X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/error?a=commitdiff_plain;h=9aa27a13f9cc3368e81ff348f6a8b992f1a98a99;p=plomrogue Server/py: Fix writing out TT_CORPSE_ID commands to early to save file. --- diff --git a/plomrogue-server.py b/plomrogue-server.py index eb12671..092355b 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -133,14 +133,17 @@ def save_world(): str(tt["TT_CONSUMABLE"]) + "\n" + \ "TT_LIFEPOINTS " + \ str(tt["TT_LIFEPOINTS"]) + "\n" + \ - "TT_CORPSE_ID " + \ - str(tt["TT_CORPSE_ID"]) + "\n" + \ "TT_PROLIFERATE " + \ str(tt["TT_PROLIFERATE"]) + "\n" + \ "TT_START_NUMBER " + \ str(tt["TT_START_NUMBER"]) + "\n" + \ "TT_NAME '" + tt["TT_NAME"] + "'\n" + \ "TT_SYMBOL '" + tt["TT_SYMBOL"] + "'\n" + for id in world_db["ThingTypes"]: + tt = world_db["ThingTypes"][id] + tt_string = tt_string + "TT_ID " + str(id) + "\n" + \ + "TT_CORPSE_ID " + \ + str(tt["TT_CORPSE_ID"]) + "\n" atomic_write(io_db["path_save"], "WORLD_ACTIVE " + str(world_db["WORLD_ACTIVE"]) + "\n" + "MAP_LENGTH " + str(world_db["MAP_LENGTH"]) + "\n" +