From 8552fca003490e61aa65cbc746731e1047af9a25 Mon Sep 17 00:00:00 2001 From: Timothée Floure Date: Fri, 27 May 2016 13:45:02 +0200 Subject: Fix bonus disappearance --- src/ch/epfl/xblast/server/GameStateTransitioner.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ch/epfl') diff --git a/src/ch/epfl/xblast/server/GameStateTransitioner.java b/src/ch/epfl/xblast/server/GameStateTransitioner.java index 5c22f25..9bcbf23 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 bs0.limit(Ticks.BONUS_DISAPPEARING_TICKS) + return bs0.tail().limit(Ticks.BONUS_DISAPPEARING_TICKS) .concat(Sq.constant(Block.FREE)); return bs0.tail(); -- cgit v1.2.3