From: Christian Heller Date: Fri, 6 Mar 2015 20:16:32 +0000 (+0100) Subject: Server/py: Fix some thing memorization bugs. X-Git-Tag: tce~401 X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/static/edit?a=commitdiff_plain;h=b366e1f88c64e11f4e6e0cc088b89dd7ffcab25b;p=plomrogue Server/py: Fix some thing memorization bugs. --- 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: