From b366e1f88c64e11f4e6e0cc088b89dd7ffcab25b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 6 Mar 2015 21:16:32 +0100 Subject: [PATCH] Server/py: Fix some thing memorization bugs. --- plomrogue-server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index 2faf15c..bd89f8b 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -485,7 +485,7 @@ def update_map_memory(t): type = world_db["Things"][id]["T_TYPE"] if not world_db["ThingTypes"][type]["TT_LIFEPOINTS"]: y = world_db["Things"][id]["T_POSY"] - x = world_db["Things"][id]["T_POSY"] + x = world_db["Things"][id]["T_POSX"] if "v" == chr(t["fovmap"][(y * world_db["MAP_LENGTH"]) + x]): t["T_MEMTHING"].append((type, y, x)) @@ -824,7 +824,7 @@ def command_thingshere(str_y, str_x): for id in world_db["Things"]: write_thing_if_here() else: - for id in world_db["Things"]["T_MEMTHING"]: + for id in world_db["Things"][id]["T_MEMTHING"]: write_thing_if_here() strong_write(io_db["file_out"], "THINGS_HERE END\n") else: -- 2.30.2