home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c3865b
)
Fix FOV bug.
author
Christian Heller
<c.heller@plomlompom.de>
Thu, 17 Jan 2019 23:19:31 +0000
(
00:19
+0100)
committer
Christian Heller
<c.heller@plomlompom.de>
Thu, 17 Jan 2019 23:19:31 +0000
(
00:19
+0100)
server_/game.py
patch
|
blob
|
history
diff --git
a/server_/game.py
b/server_/game.py
index 60c0f4726950d0756dc6a8a255e1583fb2c41559..bcf41b7ddeb10bd50f3283da04b76c898bb00c7a 100644
(file)
--- 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: