From 0968761c6ffdc7933c653bba44a0c8f5687984c2 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Mon, 19 Dec 2022 19:30:54 +0530 Subject: [PATCH] fix oob sequence --- src/MarbleWorld.hx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index def4eda4..ff9e3cdc 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -524,6 +524,8 @@ class MarbleWorld extends Scheduler { } public function updateGameState() { + if (this.outOfBounds) + return; // We will update state manually if (this.timeState.currentAttemptTime < 0.5) { this.playGui.setCenterText('none'); } @@ -540,9 +542,6 @@ class MarbleWorld extends Scheduler { if (this.timeState.currentAttemptTime >= 5.5) { this.playGui.setCenterText('none'); } - if (this.outOfBounds) { - this.playGui.setCenterText('outofbounds'); - } } function getStartPositionAndOrientation() { @@ -1736,7 +1735,10 @@ class MarbleWorld extends Scheduler { playGui.setCenterText('none'); 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. */