From: Christian Heller Date: Wed, 4 Mar 2015 11:28:45 +0000 (+0100) Subject: Server/py: Fix more memthing handling breakage. X-Git-Tag: tce~423 X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bdb.prefix%7D%7D/static/%7B%7Bprefix%7D%7D/todos?a=commitdiff_plain;h=0e8f9d67473a7fc8a9784abfb111e9dd95a2d742;p=plomrogue Server/py: Fix more memthing handling breakage. --- 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"]: