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:
a502fc7
)
Server/py: Fix some thing memorization bugs.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 6 Mar 2015 20:16:32 +0000
(21:16 +0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 6 Mar 2015 20:16:32 +0000
(21:16 +0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index 2faf15ce64d8f06e9f8e2e4f6781a1fce03d618b..bd89f8b02bff3e64a965add1e57a4af2cb3ec38e 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-485,7
+485,7
@@
def update_map_memory(t):
type = world_db["Things"][id]["T_TYPE"]
if not world_db["ThingTypes"][type]["TT_LIFEPOINTS"]:
y = world_db["Things"][id]["T_POSY"]
type = world_db["Things"][id]["T_TYPE"]
if not world_db["ThingTypes"][type]["TT_LIFEPOINTS"]:
y = world_db["Things"][id]["T_POSY"]
- x = world_db["Things"][id]["T_POS
Y
"]
+ x = world_db["Things"][id]["T_POS
X
"]
if "v" == chr(t["fovmap"][(y * world_db["MAP_LENGTH"]) + x]):
t["T_MEMTHING"].append((type, y, x))
if "v" == chr(t["fovmap"][(y * world_db["MAP_LENGTH"]) + x]):
t["T_MEMTHING"].append((type, y, x))
@@
-824,7
+824,7
@@
def command_thingshere(str_y, str_x):
for id in world_db["Things"]:
write_thing_if_here()
else:
for id in world_db["Things"]:
write_thing_if_here()
else:
- for id in world_db["Things"]["T_MEMTHING"]:
+ for id in world_db["Things"][
id][
"T_MEMTHING"]:
write_thing_if_here()
strong_write(io_db["file_out"], "THINGS_HERE END\n")
else:
write_thing_if_here()
strong_write(io_db["file_out"], "THINGS_HERE END\n")
else: