From a686be2ffd95a904172f68cee74d471c230b5963 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 ab2f1dae..924a107c 100644 --- a/src/MarbleWorld.hx +++ b/src/MarbleWorld.hx @@ -2359,7 +2359,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 799e4518..510f01ad 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; @@ -189,7 +189,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)