diff --git a/src/Marble.hx b/src/Marble.hx index a9f0cfb9..048e6643 100644 --- a/src/Marble.hx +++ b/src/Marble.hx @@ -382,6 +382,7 @@ class Marble extends GameObject { this.lastRenderPos = new Vector(); this.netSmoothOffset = new Vector(); this.netCorrected = false; + this.lastContactNormal = new Vector(0, 0, 1); var marbleDts = new DtsObject(); var marbleShader = ""; diff --git a/src/gui/EndGameGui.hx b/src/gui/EndGameGui.hx index 3e39ce75..95448d52 100644 --- a/src/gui/EndGameGui.hx +++ b/src/gui/EndGameGui.hx @@ -194,11 +194,12 @@ class EndGameGui extends GuiImage { continueFunc(nextButton); } bottomBar.addChild(nextButton); + var rewindUsed = MarbleGame.instance.world.rewindUsed; var submitScore = () -> { var lbScoreValue = score; if (scoreType == Score) lbScoreValue = 1000 - score; - Leaderboards.submitScore(mission.path, lbScoreValue, MarbleGame.instance.world.rewindUsed, (needsReplay, ref) -> { + Leaderboards.submitScore(mission.path, lbScoreValue, rewindUsed, (needsReplay, ref) -> { if (needsReplay) { Leaderboards.submitReplay(ref, replayData); }