From 80272dc906c5d5e837ccea8bc94e16dd54df19e0 Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 9 Apr 2016 23:58:48 +0200 Subject: Fix newly dropped bombs fuse length --- 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 3d14bd0..8d0933f 100644 --- a/src/ch/epfl/xblast/server/GameState.java +++ b/src/ch/epfl/xblast/server/GameState.java @@ -377,7 +377,7 @@ public final class GameState { List ownedBombs = bombOwnerMap.get(p.id()); if (ownedBombs != null && ownedBombs.size() >= p.maxBombs()) continue; - Bomb b = new Bomb(p.id(), p.position().containingCell(), Ticks.BOMB_FUSE_TICKS, p.bombRange()); + Bomb b = new Bomb(p.id(), p.position().containingCell(), Ticks.BOMB_FUSE_TICKS - 1, p.bombRange()); bombedCells.add(b.position()); bombs1.add(b); } -- cgit v1.2.3