From 7ad963df88e1ad3f537f84db9d8bce6c7f46a6fa Mon Sep 17 00:00:00 2001 From: Pacien TRAN-GIRARD Date: Sat, 7 May 2016 16:35:23 +0200 Subject: Implement bonus disappearance in the exact way wanted by the reviewer --- src/ch/epfl/xblast/server/GameStateTransitioner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch/epfl/xblast/server/GameStateTransitioner.java b/src/ch/epfl/xblast/server/GameStateTransitioner.java index 55d3cda..5c22f25 100644 --- a/src/ch/epfl/xblast/server/GameStateTransitioner.java +++ b/src/ch/epfl/xblast/server/GameStateTransitioner.java @@ -87,7 +87,7 @@ final class GameStateTransitioner { .concat(Sq.constant(Block.getRandomBonusBlock())); else if (b.isBonus()) - return Sq.repeat(Ticks.BONUS_DISAPPEARING_TICKS, b) + return bs0.limit(Ticks.BONUS_DISAPPEARING_TICKS) .concat(Sq.constant(Block.FREE)); return bs0.tail(); -- cgit v1.2.3