aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-04-15 13:06:59 +0200
committerPacien TRAN-GIRARD2016-04-15 13:06:59 +0200
commitef3de705ff70ad1e6918de5b9a13ea4179756ff7 (patch)
tree85b4852492b6f965072464b19ed0d91d8a8d3941 /src/ch/epfl
parent034205b3e60d68bd451547e86630108f509d207b (diff)
downloadxblast-ef3de705ff70ad1e6918de5b9a13ea4179756ff7.tar.gz
Fix bomb blocking distance
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java
index 107162e..71e32a6 100644
--- a/src/ch/epfl/xblast/server/GameState.java
+++ b/src/ch/epfl/xblast/server/GameState.java
@@ -324,7 +324,7 @@ public final class GameState {
324 return true; 324 return true;
325 325
326 if (bombedCells1.contains(nextCentralPos.containingCell())) 326 if (bombedCells1.contains(nextCentralPos.containingCell()))
327 if (nextPos.distanceTo(nextCentralPos) < Board.BOMB_BLOCKING_DISTANCE) 327 if (nextPos.distanceTo(nextCentralPos) == Board.BOMB_BLOCKING_DISTANCE - 1)
328 return true; 328 return true;
329 329
330 return false; 330 return false;