From 0e8f9d67473a7fc8a9784abfb111e9dd95a2d742 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 4 Mar 2015 12:28:45 +0100 Subject: [PATCH] Server/py: Fix more memthing handling breakage. --- plomrogue-server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index 299155d..7d45321 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -382,11 +382,11 @@ def update_map_memory(t): t["T_MEMMAP"][pos] = world_db["MAP"][pos] continue # TODO: Aging of MEMDEPTHMAP. - for id in t["T_MEMTHING"]: - y = world_db["Things"][id]["T_POSY"] - x = world_db["Things"][id]["T_POSY"] + for memthing in t["T_MEMTHING"]: + y = world_db["Things"][memthing[0]]["T_POSY"] + x = world_db["Things"][memthing[1]]["T_POSY"] if "v" == chr(t["fovmap"][(y * world_db["MAP_LENGTH"]) + x]): - t["T_MEMTHING"].remove(id) + t["T_MEMTHING"].remove(memthing) for id in world_db["Things"]: type = world_db["Things"][id]["T_TYPE"] if not world_db["ThingTypes"][type]["TT_LIFEPOINTS"]: -- 2.30.2