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();