Skip to content

Commit 294fc8b

Browse files
committed
feat: include desync flag in match outcome payload
1 parent 6bf937b commit 294fc8b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,8 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep
448448
resolvedSide = pLocalSlot->getPlayerTemplate();
449449
}
450450
}
451+
452+
const bool desynced = TheNetwork->sawCRCMismatch();
451453

452454
nlohmann::json j;
453455
j["buildings_built"] = buildingsBuilt;
@@ -460,6 +462,7 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep
460462
j["won"] = bWon;
461463
j["match_id"] = currentMatchID;
462464
j["side"] = resolvedSide;
465+
j["desynced"] = desynced;
463466

464467
std::string strPostData = j.dump();
465468

0 commit comments

Comments
 (0)