From 4fc1e457d1a4b4497334f3141a372d525d25bcfe Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 18 Jan 2019 00:19:31 +0100 Subject: [PATCH] Fix FOV bug. --- server_/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2