diff options
author | Pacien TRAN-GIRARD | 2016-05-07 16:35:23 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2016-05-07 16:35:23 +0200 |
commit | 7ad963df88e1ad3f537f84db9d8bce6c7f46a6fa (patch) | |
tree | 7624ed11716531df3bd21bd6dc89cf72db828f32 /src | |
parent | f11a40948bc99d6ed59e927a62e0ff321b266584 (diff) | |
download | xblast-7ad963df88e1ad3f537f84db9d8bce6c7f46a6fa.tar.gz |
Implement bonus disappearance in the exact way wanted by the reviewer
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 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 { | |||
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 Sq.repeat(Ticks.BONUS_DISAPPEARING_TICKS, b) | 90 | return bs0.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(); |