From 9aa27a13f9cc3368e81ff348f6a8b992f1a98a99 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 28 Feb 2015 15:34:40 +0100 Subject: [PATCH] Server/py: Fix writing out TT_CORPSE_ID commands to early to save file. --- plomrogue-server.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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" + -- 2.30.2