From 471a781b467d8ecd8877ce97b8dd754137d5dd31 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 31 Jan 2019 00:56:59 +0100 Subject: [PATCH 1/1] Fix faultiness in previous commit. --- server_/game.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_/game.py b/server_/game.py index aafc740..067bc0a 100644 --- 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: -- 2.30.2