diff options
Diffstat (limited to 'src/ch')
-rw-r--r-- | src/ch/epfl/xblast/server/Bomb.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ch/epfl/xblast/server/Bomb.java b/src/ch/epfl/xblast/server/Bomb.java index 57c271f..ebbe8e3 100644 --- a/src/ch/epfl/xblast/server/Bomb.java +++ b/src/ch/epfl/xblast/server/Bomb.java | |||
@@ -93,9 +93,8 @@ public final class Bomb { | |||
93 | * @param dir the Direction of the arm | 93 | * @param dir the Direction of the arm |
94 | */ | 94 | */ |
95 | private Sq<Sq<Cell>> explosionArmTowards(Direction dir) { | 95 | private Sq<Sq<Cell>> explosionArmTowards(Direction dir) { |
96 | return Sq | 96 | Sq<Cell> explosionArm = Sq.iterate(position, position -> position.neighbor(dir)).limit(range); |
97 | .constant(Sq.iterate(position, position -> position.neighbor(dir)).limit(range)) | 97 | return Sq.repeat(Ticks.EXPLOSION_TICKS, explosionArm); |
98 | .limit(Ticks.EXPLOSION_TICKS); | ||
99 | } | 98 | } |
100 | 99 | ||
101 | /** | 100 | /** |