From 5d93798c5c261c4844df2326602a253fe400dd1c Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sun, 10 Apr 2016 00:06:50 +0200 Subject: Fix bomb fuse length explosion threshold --- src/ch/epfl/xblast/server/GameState.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ch') diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 8d0933f..ab6f2a6 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java @@ -338,7 +338,7 @@ public final class GameState { */ private static List explodingBombs(List bombs, Set blastedCells) { return bombs.stream() - .filter(b -> blastedCells.contains(b.position()) || b.fuseLength() == 0) + .filter(b -> blastedCells.contains(b.position()) || b.fuseLength() <= 1) .collect(Collectors.toList()); } -- cgit v1.2.3