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:
9450442
)
Server/py: Some more mem map handling fixes …
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Mar 2015 03:12:34 +0000
(
04:12
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 8 Mar 2015 03:12:34 +0000
(
04:12
+0100)
plomrogue-server.py
patch
|
blob
|
history
diff --git
a/plomrogue-server.py
b/plomrogue-server.py
index a63eedd4c3833c15ba3107dfaf11ab27a9a2d51a..a7cee78262f7b3ac5515c926206087d6dc93aaaa 100755
(executable)
--- a/
plomrogue-server.py
+++ b/
plomrogue-server.py
@@
-1106,7
+1106,6
@@
def command_thingshere(str_y, str_x):
strong_write(io_db["file_out"], "THINGS_HERE START\n")
if "v" == chr(world_db["Things"][0]["fovmap"][pos]):
for id in world_db["Things"]:
strong_write(io_db["file_out"], "THINGS_HERE START\n")
if "v" == chr(world_db["Things"][0]["fovmap"][pos]):
for id in world_db["Things"]:
- # write_thing_if_here()
if y == world_db["Things"][id]["T_POSY"] \
and x == world_db["Things"][id]["T_POSX"] \
and not world_db["Things"][id]["carried"]:
if y == world_db["Things"][id]["T_POSY"] \
and x == world_db["Things"][id]["T_POSX"] \
and not world_db["Things"][id]["carried"]:
@@
-1285,7
+1284,7
@@
def command_worldactive(worldactive_string):
if world_db["Things"][id]["T_LIFEPOINTS"]:
build_fov_map(world_db["Things"][id])
if 0 == id:
if world_db["Things"][id]["T_LIFEPOINTS"]:
build_fov_map(world_db["Things"][id])
if 0 == id:
- update_map_memory(world_db["Things"][id])
+ update_map_memory(world_db["Things"][id]
, False
)
world_db["WORLD_ACTIVE"] = 1
world_db["WORLD_ACTIVE"] = 1