aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-04-09 23:58:48 +0200
committerPacien TRAN-GIRARD2016-04-09 23:58:48 +0200
commit80272dc906c5d5e837ccea8bc94e16dd54df19e0 (patch)
treef59b360ce600fda22d385dfeb42727cb29c7e125 /src/ch/epfl
parent67959ff058abc5fa0f943b031c6a1369c0f3a5c7 (diff)
downloadxblast-80272dc906c5d5e837ccea8bc94e16dd54df19e0.tar.gz
Fix newly dropped bombs fuse length
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/GameState.java2
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 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 {
377 List<Bomb> ownedBombs = bombOwnerMap.get(p.id()); 377 List<Bomb> ownedBombs = bombOwnerMap.get(p.id());
378 if (ownedBombs != null && ownedBombs.size() >= p.maxBombs()) continue; 378 if (ownedBombs != null && ownedBombs.size() >= p.maxBombs()) continue;
379 379
380 Bomb b = new Bomb(p.id(), p.position().containingCell(), Ticks.BOMB_FUSE_TICKS, p.bombRange()); 380 Bomb b = new Bomb(p.id(), p.position().containingCell(), Ticks.BOMB_FUSE_TICKS - 1, p.bombRange());
381 bombedCells.add(b.position()); 381 bombedCells.add(b.position());
382 bombs1.add(b); 382 bombs1.add(b);
383 } 383 }