home · contact · privacy
Fix faultiness in previous commit.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 30 Jan 2019 23:56:59 +0000 (00:56 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 30 Jan 2019 23:56:59 +0000 (00:56 +0100)
server_/game.py

index aafc7402017734031b287cf7a1c474123be4f19d..067bc0a22fd77bc08f85d64ae97e425f3080d892 100644 (file)
@@ -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: