home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix faultiness in previous commit.
[plomrogue2-experiments]
/
server_
/
game.py
diff --git
a/server_/game.py
b/server_/game.py
index aafc7402017734031b287cf7a1c474123be4f19d..067bc0a22fd77bc08f85d64ae97e425f3080d892 100644
(file)
--- a/
server_/game.py
+++ b/
server_/game.py
@@
-118,11
+118,11
@@
class Thing(game_common.Thing):
dijkstra_map.terrain = [n_max for i in range(dijkstra_map.size_i)]
dijkstra_map[target] = 0
shrunk = True
dijkstra_map.terrain = [n_max for i in range(dijkstra_map.size_i)]
dijkstra_map[target] = 0
shrunk = True
-
stencil = self.get_stencil
()
+
visible_map = self.get_visible_map
()
while shrunk:
shrunk = False
for pos in dijkstra_map:
while shrunk:
shrunk = False
for pos in dijkstra_map:
- if
stencil
[pos] != '.':
+ if
visible_map
[pos] != '.':
continue
neighbors = dijkstra_map.get_neighbors(tuple(pos))
for direction in neighbors:
continue
neighbors = dijkstra_map.get_neighbors(tuple(pos))
for direction in neighbors: