don't submit replays for customs

This commit is contained in:
RandomityGuy 2025-02-11 12:41:15 +05:30
parent 611ac6cebd
commit 570c7355eb

View file

@ -428,7 +428,7 @@ class EndGameGui extends GuiControl {
lbPath = 'custom/${mission.id}'; lbPath = 'custom/${mission.id}';
var replayData = MarbleGame.instance.world.replay.write(); var replayData = MarbleGame.instance.world.replay.write();
Leaderboards.submitScore(lbPath, myScore.time, MarbleGame.instance.world.rewindUsed, (sendReplay, rowId) -> { Leaderboards.submitScore(lbPath, myScore.time, MarbleGame.instance.world.rewindUsed, (sendReplay, rowId) -> {
if (sendReplay) { if (sendReplay && !mission.isClaMission) {
Leaderboards.submitReplay(rowId, replayData); Leaderboards.submitReplay(rowId, replayData);
} }
}); });
@ -452,7 +452,7 @@ class EndGameGui extends GuiControl {
} }
if (!hasMyScore) { if (!hasMyScore) {
Leaderboards.submitScore(lbPath, timeState.gameplayClock, MarbleGame.instance.world.rewindUsed, (sendReplay, rowId) -> { Leaderboards.submitScore(lbPath, timeState.gameplayClock, MarbleGame.instance.world.rewindUsed, (sendReplay, rowId) -> {
if (sendReplay) { if (sendReplay && !mission.isClaMission) {
Leaderboards.submitReplay(rowId, replayData); Leaderboards.submitReplay(rowId, replayData);
} }
}); });