From a6012b002ef90d0cbf6ae13a51d6dac09b4e92ae Mon Sep 17 00:00:00 2001 From: JoKeRZH429 <83122870+JoKeRZH429@users.noreply.github.com> Date: Tue, 11 Aug 2026 13:07:40 +0500 Subject: [PATCH] feat: include desync flag in match outcome payload --- .../GeneralsOnline/OnlineServices_StatsInterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp index b64c5ca6745..2b89b571ecd 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameNetwork/GeneralsOnline/OnlineServices_StatsInterface.cpp @@ -1,6 +1,7 @@ #include "GameNetwork/GeneralsOnline/json.hpp" #include "GameNetwork/GeneralsOnline/NGMP_interfaces.h" #include "GameNetwork/GameSpy/PersistentStorageThread.h" +#include "GameNetwork/NetworkInterface.h" #include "GameNetwork/RankPointValue.h" #include "../OnlineServices_Init.h" #include "../HTTP/HTTPManager.h" @@ -448,6 +449,8 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep resolvedSide = pLocalSlot->getPlayerTemplate(); } } + + const bool desynced = TheNetwork->sawCRCMismatch(); nlohmann::json j; j["buildings_built"] = buildingsBuilt; @@ -460,6 +463,7 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep j["won"] = bWon; j["match_id"] = currentMatchID; j["side"] = resolvedSide; + j["desynced"] = desynced; std::string strPostData = j.dump();