X-Git-Url: https://plomlompom.com/repos/?p=plomrogue;a=blobdiff_plain;f=plomrogue-server.py;h=7d4532108afdd14d76a513dc45603085b018e4de;hp=299155df632a0668125255ae09e97587066e364d;hb=0e8f9d67473a7fc8a9784abfb111e9dd95a2d742;hpb=a9ae51ca55e7504fb84f19ca99e150ae01fbf9c6 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"]: