Skip to content

Commit

Permalink
Merge pull request #129 from thearst3rd/fix-mp-end
Browse files Browse the repository at this point in the history
Fix end scores not showing up at the end of multiplayer sessions
  • Loading branch information
HumanGamer authored Sep 25, 2022
2 parents 9214e6a + 1e560da commit 1313c65
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
23 changes: 23 additions & 0 deletions engine/source/xblive/xbliveFunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,29 @@ ConsoleFunction(XBLiveGetSignInPort, S32, 1, 1, "()")
return 0;
}

bool xbliveSessionActive = false;

ConsoleFunction(XBLiveIsStatsSessionActive, bool, 1, 1, "()")
{
argc;

return xbliveSessionActive;
}

ConsoleFunction(XBLiveStartStatsSession, void, 1, 1, "()")
{
argc;

xbliveSessionActive = true;
}

ConsoleFunction(XBLiveEndStatsSession, void, 1, 1, "()")
{
argc;

xbliveSessionActive = false;
}

ConsoleFunction(PDLCAllowMission, bool, 2, 2, "(levelId)")
{
argc;
Expand Down
2 changes: 1 addition & 1 deletion game/marble/client/scripts/game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ function clientWriteMultiplayerScore(%client)

function clientAreStatsAllowed()
{
return !isDemoLaunch() && !isPCBuild() && XBLiveIsSignedInSilver() && $Client::UseXBLiveMatchMaking;
return !isDemoLaunch();// && !isPCBuild() && XBLiveIsSignedInSilver() && $Client::UseXBLiveMatchMaking;
}

function clientAreOfflineStatsAllowed()
Expand Down

0 comments on commit 1313c65

Please sign in to comment.