fixed tetris game tick delay too low at high levels
This commit is contained in:
1 parent
70be6418e0
commit
1ef1d760ed
1 file changed
+1
-1
+1
-1
@@ -92,7 +92,7 @@ public class TetrisGame {
|
||||
int standardTickDelay = 40;
|
||||
if(this.isFast) standardTickDelay = 20;
|
||||
|
||||
TaskSchedule nextTick = TaskSchedule.tick(Math.round((float) standardTickDelay / this.level));
|
||||
TaskSchedule nextTick = TaskSchedule.tick(Math.max(Math.round((float) standardTickDelay / this.level), 1));
|
||||
if(this.paused) return nextTick;
|
||||
this.tick();
|
||||
return nextTick;
|
||||
|
||||
Reference in new issue
Block a user