summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
index 2e4079b..4cb07f4 100644
--- a/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
+++ b/core/src/ch/asynk/gdx/boardgame/boards/HexBoard.java
@@ -385,6 +385,8 @@ public class HexBoard implements Board
t.blocked = losBlocked;
if (t.blockLos(from, to, d, distance(x0, y0, x, y, Board.Geometry.EUCLIDEAN)))
blocked |= 0x01;
+ } else {
+ blocked |= 0x01;
}
if (flat)
@@ -399,6 +401,8 @@ public class HexBoard implements Board
t.blocked = losBlocked;
if (t.blockLos(from, to, d, distance(x0, y0, x, y, Board.Geometry.EUCLIDEAN)))
blocked |= 0x02;
+ } else {
+ blocked |= 0x02;
}
if (flat)
@@ -418,6 +422,8 @@ public class HexBoard implements Board
contact = true;
}
losBlocked = (t.blocked || t.blockLos(from, to, d, distance(x0, y0, x, y, Board.Geometry.EUCLIDEAN)));
+ } else {
+ losBlocked = true;
}
}