home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de3297c
)
Fix faultiness in previous commit.
author
Christian Heller
<c.heller@plomlompom.de>
Wed, 30 Jan 2019 23:56:59 +0000
(
00:56
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Wed, 30 Jan 2019 23:56:59 +0000
(
00:56
+0100)
server_/game.py
patch
|
blob
|
history
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
-
stencil = self.get_stencil
()
+
visible_map = self.get_visible_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: