aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-04-14 16:18:22 +0200
committerPacien TRAN-GIRARD2016-04-14 16:18:22 +0200
commit5b5071a54d431f03fee6c3acdae5dc980b2480b8 (patch)
tree12a98fa4458208e676213f8df9085744dbcc56ee /src
parent998856f1b93d4bfb561b3424645e33bf86678161 (diff)
downloadxblast-5b5071a54d431f03fee6c3acdae5dc980b2480b8.tar.gz
Fix bomb blocking distance according to the test
Diffstat (limited to 'src')
-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 61e64f3..ece12ed 100644
--- a/src/ch/epfl/xblast/server/GameState.java
+++ b/src/ch/epfl/xblast/server/GameState.java
@@ -327,7 +327,7 @@ public final class GameState {
327 return true; 327 return true;
328 328
329 if (bombedCells1.contains(nextCentralPos.containingCell())) 329 if (bombedCells1.contains(nextCentralPos.containingCell()))
330 if (nextPos.distanceTo(nextCentralPos) <= Board.BOMB_BLOCKING_DISTANCE) 330 if (nextPos.distanceTo(nextCentralPos) < Board.BOMB_BLOCKING_DISTANCE)
331 return true; 331 return true;
332 332
333 return false; 333 return false;