home
·
contact
·
privacy
projects
/
plomrogue
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb1f8f3
)
Server/py: Fix another MEMTHING management bug.
author
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 21:19:48 +0000
(22:19 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sat, 7 Mar 2015 21:19:48 +0000
(22:19 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index adbada39cec822041a1c667985eae6f0ada835d1..cc7ddf761158aa61365ba36f2dda000c0fc45a4c 100755
(executable)
--- 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"]