fix these crashes

This commit is contained in:
RandomityGuy 2025-06-17 18:30:24 +05:30
parent 2a2284f848
commit 364cee017f
2 changed files with 3 additions and 1 deletions

View file

@ -382,6 +382,7 @@ class Marble extends GameObject {
this.lastRenderPos = new Vector(); this.lastRenderPos = new Vector();
this.netSmoothOffset = new Vector(); this.netSmoothOffset = new Vector();
this.netCorrected = false; this.netCorrected = false;
this.lastContactNormal = new Vector(0, 0, 1);
var marbleDts = new DtsObject(); var marbleDts = new DtsObject();
var marbleShader = ""; var marbleShader = "";

View file

@ -194,11 +194,12 @@ class EndGameGui extends GuiImage {
continueFunc(nextButton); continueFunc(nextButton);
} }
bottomBar.addChild(nextButton); bottomBar.addChild(nextButton);
var rewindUsed = MarbleGame.instance.world.rewindUsed;
var submitScore = () -> { var submitScore = () -> {
var lbScoreValue = score; var lbScoreValue = score;
if (scoreType == Score) if (scoreType == Score)
lbScoreValue = 1000 - 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) { if (needsReplay) {
Leaderboards.submitReplay(ref, replayData); Leaderboards.submitReplay(ref, replayData);
} }