fix oob sequence

This commit is contained in:
RandomityGuy 2022-12-19 19:30:54 +05:30
parent cdb801445c
commit 0968761c6f

View file

@ -524,6 +524,8 @@ class MarbleWorld extends Scheduler {
} }
public function updateGameState() { public function updateGameState() {
if (this.outOfBounds)
return; // We will update state manually
if (this.timeState.currentAttemptTime < 0.5) { if (this.timeState.currentAttemptTime < 0.5) {
this.playGui.setCenterText('none'); this.playGui.setCenterText('none');
} }
@ -540,9 +542,6 @@ class MarbleWorld extends Scheduler {
if (this.timeState.currentAttemptTime >= 5.5) { if (this.timeState.currentAttemptTime >= 5.5) {
this.playGui.setCenterText('none'); this.playGui.setCenterText('none');
} }
if (this.outOfBounds) {
this.playGui.setCenterText('outofbounds');
}
} }
function getStartPositionAndOrientation() { function getStartPositionAndOrientation() {
@ -1736,7 +1735,10 @@ class MarbleWorld extends Scheduler {
playGui.setCenterText('none'); playGui.setCenterText('none');
return null; return null;
}); });
this.schedule(this.timeState.currentAttemptTime + 2.5, () -> this.restart()); this.schedule(this.timeState.currentAttemptTime + 2.5, () -> {
this.restart();
return null;
});
} }
/** Sets a new active checkpoint. */ /** Sets a new active checkpoint. */