From 42b306dd980b643e1f0c2f8b83e4eddc6aec7f44 Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Fri, 21 Mar 2025 19:13:27 +0530 Subject: [PATCH] attempt replay fixes --- src/MarbleWorld.hx | 3 ++- src/gui/EndGameGui.hx | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MarbleWorld.hx b/src/MarbleWorld.hx index a98aada2..f764dfd0 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -2373,7 +2373,8 @@ class MarbleWorld extends Scheduler { } else { nextLevelCode(); } - }, mission, this.gameMode.getFinishScore(), this.gameMode.getScoreType()); + }, mission, this.gameMode.getFinishScore(), + this.gameMode.getScoreType(), this.replay.write()); MarbleGame.canvas.pushDialog(egg); this.setCursorLock(false); return 0; diff --git a/src/gui/EndGameGui.hx b/src/gui/EndGameGui.hx index 5b39eb65..3e39ce75 100644 --- a/src/gui/EndGameGui.hx +++ b/src/gui/EndGameGui.hx @@ -28,7 +28,7 @@ class EndGameGui extends GuiImage { var scoreSubmitted:Bool = false; public function new(continueFunc:GuiControl->Void, restartFunc:GuiControl->Void, nextLevelFunc:GuiControl->Void, mission:Mission, score:Float, - scoreType:ScoreType) { + scoreType:ScoreType, replayData:haxe.io.Bytes) { var res = ResourceLoader.getImage("data/ui/xbox/BG_fadeOutSoftEdge.png").resource.toTile(); super(res); this.horizSizing = Width; @@ -194,7 +194,6 @@ class EndGameGui extends GuiImage { continueFunc(nextButton); } bottomBar.addChild(nextButton); - var replayData = MarbleGame.instance.world.replay.write(); var submitScore = () -> { var lbScoreValue = score; if (scoreType == Score)