diff options
author | Pacien TRAN-GIRARD | 2016-04-10 19:20:26 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-10 19:20:26 +0200 |
commit | a4a51ccea6051356d339e777a7d7c4e15804dab6 (patch) | |
tree | 47717baf2db7799aacb0f0fc596d76ef07fd8183 /src/ch | |
parent | ccb2248d468852e5f7f88dcbed10fd00efa4b3d2 (diff) | |
download | xblast-a4a51ccea6051356d339e777a7d7c4e15804dab6.tar.gz |
Restore proper bomb blocking distance
Diffstat (limited to 'src/ch')
-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 7d921ee..2fbea45 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java | |||
@@ -334,7 +334,7 @@ public final class GameState { | |||
334 | return true; | 334 | return true; |
335 | 335 | ||
336 | if (bombedCells1.contains(nextCentralPos.containingCell())) | 336 | if (bombedCells1.contains(nextCentralPos.containingCell())) |
337 | if (nextPos.distanceTo(nextCentralPos) <= Board.BOMB_BLOCKING_DISTANCE + 1) | 337 | if (nextPos.distanceTo(nextCentralPos) <= Board.BOMB_BLOCKING_DISTANCE) |
338 | return true; | 338 | return true; |
339 | 339 | ||
340 | return false; | 340 | return false; |