diff options
author | Pacien TRAN-GIRARD | 2016-04-15 13:06:59 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-15 13:06:59 +0200 |
commit | ef3de705ff70ad1e6918de5b9a13ea4179756ff7 (patch) | |
tree | 85b4852492b6f965072464b19ed0d91d8a8d3941 /src/ch/epfl | |
parent | 034205b3e60d68bd451547e86630108f509d207b (diff) | |
download | xblast-ef3de705ff70ad1e6918de5b9a13ea4179756ff7.tar.gz |
Fix bomb blocking distance
Diffstat (limited to 'src/ch/epfl')
-rw-r--r-- | src/ch/epfl/xblast/server/GameState.java | 2 |
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; |