From: Christian Heller Date: Wed, 30 Jan 2019 23:56:59 +0000 (+0100) Subject: Fix faultiness in previous commit. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks?a=commitdiff_plain;h=471a781b467d8ecd8877ce97b8dd754137d5dd31;p=plomrogue2-experiments Fix faultiness in previous commit. --- 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: