mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix these crashes
This commit is contained in:
parent
2a2284f848
commit
364cee017f
2 changed files with 3 additions and 1 deletions
|
|
@ -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 = "";
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue