From 1a9bd858d96cede6890cc5e37f62098ec61b1b2b Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 7 Mar 2015 22:19:48 +0100 Subject: [PATCH] Server/py: Fix another MEMTHING management bug. --- plomrogue-server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plomrogue-server.py b/plomrogue-server.py index adbada3..cc7ddf7 100755 --- a/plomrogue-server.py +++ b/plomrogue-server.py @@ -485,7 +485,8 @@ def update_map_memory(t, age_map=True): if "v" == chr(t["fovmap"][(mt[1] * world_db["MAP_LENGTH"]) + mt[2]])]: t["T_MEMTHING"].remove(mt) - for id in world_db["Things"]: + for id in [id for id in world_db["Things"] + if not world_db["Things"][id]["carried"]]: type = world_db["Things"][id]["T_TYPE"] if not world_db["ThingTypes"][type]["TT_LIFEPOINTS"]: y = world_db["Things"][id]["T_POSY"] -- 2.30.2