From 36e3b47ec524cd305e1a605a2736721fea308f17 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Fri, 15 Apr 2016 10:58:55 +0200 Subject: Destroy bombs according to new blasts instead of the current ones --- src/ch/epfl/xblast/server/GameState.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/ch/epfl/xblast/server/GameState.java b/src/ch/epfl/xblast/server/GameState.java index 4c30235..7d94c69 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java @@ -557,8 +557,7 @@ public final class GameState { List>> explosions1 = GameState.nextExplosions(this.explosions); // 4.1. existing bombs evolution - Set blastedCells0 = this.blastedCells(); - List explodingBombs = GameState.explodingBombs(this.bombs, blastedCells0); + List explodingBombs = GameState.explodingBombs(this.bombs, blastedCells1); List existingBombs = GameState.nextBombs(this.bombs, explodingBombs); // 4.2. subsequent explosions addition -- cgit v1.2.3