diff options
author | Timothée Floure | 2016-05-27 13:45:02 +0200 |
---|---|---|
committer | Timothée Floure | 2016-05-27 13:45:02 +0200 |
commit | 8552fca003490e61aa65cbc746731e1047af9a25 (patch) | |
tree | a5ed9ef9da846794a8dfcf19b48060335b188f16 /src | |
parent | 81b680b96dc644a4ae69316717c8ca869efeabf1 (diff) | |
download | xblast-8552fca003490e61aa65cbc746731e1047af9a25.tar.gz |
Fix bonus disappearance
Diffstat (limited to 'src')
-rw-r--r-- | src/ch/epfl/xblast/server/GameStateTransitioner.java | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
87 | .concat(Sq.constant(Block.getRandomBonusBlock())); | 87 | .concat(Sq.constant(Block.getRandomBonusBlock())); |
88 | 88 | ||
89 | else if (b.isBonus()) | 89 | else if (b.isBonus()) |
90 | return bs0.limit(Ticks.BONUS_DISAPPEARING_TICKS) | 90 | return bs0.tail().limit(Ticks.BONUS_DISAPPEARING_TICKS) |
91 | .concat(Sq.constant(Block.FREE)); | 91 | .concat(Sq.constant(Block.FREE)); |
92 | 92 | ||
93 | return bs0.tail(); | 93 | return bs0.tail(); |