diff options
author | Pacien TRAN-GIRARD | 2016-04-10 00:06:50 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-04-10 00:06:50 +0200 |
commit | 5d93798c5c261c4844df2326602a253fe400dd1c (patch) | |
tree | 6822602194ca335e1fcd5b59e1f88c7654c43ea8 /src/ch/epfl | |
parent | d5971418a75e6b032002203660e207009054aed6 (diff) | |
download | xblast-5d93798c5c261c4844df2326602a253fe400dd1c.tar.gz |
Fix bomb fuse length explosion threshold
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 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 { | |||
338 | */ | 338 | */ |
339 | private static List<Bomb> explodingBombs(List<Bomb> bombs, Set<Cell> blastedCells) { | 339 | private static List<Bomb> explodingBombs(List<Bomb> bombs, Set<Cell> blastedCells) { |
340 | return bombs.stream() | 340 | return bombs.stream() |
341 | .filter(b -> blastedCells.contains(b.position()) || b.fuseLength() == 0) | 341 | .filter(b -> blastedCells.contains(b.position()) || b.fuseLength() <= 1) |
342 | .collect(Collectors.toList()); | 342 | .collect(Collectors.toList()); |
343 | } | 343 | } |
344 | 344 | ||