From 5b5071a54d431f03fee6c3acdae5dc980b2480b8 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Thu, 14 Apr 2016 16:18:22 +0200 Subject: Fix bomb blocking distance according to the test --- src/ch/epfl/xblast/server/GameState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { return true; if (bombedCells1.contains(nextCentralPos.containingCell())) - if (nextPos.distanceTo(nextCentralPos) <= Board.BOMB_BLOCKING_DISTANCE) + if (nextPos.distanceTo(nextCentralPos) < Board.BOMB_BLOCKING_DISTANCE) return true; return false; -- cgit v1.2.3