Skip to content

Commit

Permalink
fix speed level unbounded
Browse files Browse the repository at this point in the history
  • Loading branch information
boyan01 committed Jan 18, 2019
1 parent 5f0a9be commit b151999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gamer/gamer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ class GameControl extends State<Game> with RouteAware {
} else if (enable) {
_autoFallTimer?.cancel();
_current = _current ?? _getNext();
_autoFallTimer = Timer.periodic(_SPEED[_level], (t) {
_autoFallTimer = Timer.periodic(_SPEED[_level - 1], (t) {
down(enableSounds: false);
});
}
Expand Down

0 comments on commit b151999

Please sign in to comment.