aboutsummaryrefslogtreecommitdiff
path: root/src/ch/epfl
diff options
context:
space:
mode:
authorTimothée Floure2016-05-27 13:45:02 +0200
committerTimothée Floure2016-05-27 13:45:02 +0200
commit8552fca003490e61aa65cbc746731e1047af9a25 (patch)
treea5ed9ef9da846794a8dfcf19b48060335b188f16 /src/ch/epfl
parent81b680b96dc644a4ae69316717c8ca869efeabf1 (diff)
downloadxblast-8552fca003490e61aa65cbc746731e1047af9a25.tar.gz
Fix bonus disappearance
Diffstat (limited to 'src/ch/epfl')
-rw-r--r--src/ch/epfl/xblast/server/GameStateTransitioner.java2
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();