From: Christian Heller Date: Thu, 17 Jan 2019 23:19:31 +0000 (+0100) Subject: Fix FOV bug. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/day?a=commitdiff_plain;h=4fc1e457d1a4b4497334f3141a372d525d25bcfe;p=plomrogue2-experiments Fix FOV bug. --- diff --git a/server_/game.py b/server_/game.py index 60c0f47..bcf41b7 100644 --- a/server_/game.py +++ b/server_/game.py @@ -51,7 +51,7 @@ class Map(game_common.Map): # return abs(pos_1[0] - pos_2[0]) <= 1 and abs(pos_1[1] - pos_2[1] <= 1) def are_neighbors(self, pos_1, pos_2): - if pos_1[0] == pos_2[0] and abs(pos_1[1] - pos_2[1] <= 1): + if pos_1[0] == pos_2[0] and abs(pos_1[1] - pos_2[1]) <= 1: return True elif abs(pos_1[0] - pos_2[0]) == 1: if pos_1[0] % 2 == 0: