Skip to content

Commit a6012b0

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

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "GameNetwork/GeneralsOnline/json.hpp"
22
#include "GameNetwork/GeneralsOnline/NGMP_interfaces.h"
33
#include "GameNetwork/GameSpy/PersistentStorageThread.h"
4+
#include "GameNetwork/NetworkInterface.h"
45
#include "GameNetwork/RankPointValue.h"
56
#include "../OnlineServices_Init.h"
67
#include "../HTTP/HTTPManager.h"
@@ -448,6 +449,8 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep
448449
resolvedSide = pLocalSlot->getPlayerTemplate();
449450
}
450451
}
452+
453+
const bool desynced = TheNetwork->sawCRCMismatch();
451454

452455
nlohmann::json j;
453456
j["buildings_built"] = buildingsBuilt;
@@ -460,6 +463,7 @@ void NGMP_OnlineServices_StatsInterface::CommitMyOutcome(ScoreKeeper* pScoreKeep
460463
j["won"] = bWon;
461464
j["match_id"] = currentMatchID;
462465
j["side"] = resolvedSide;
466+
j["desynced"] = desynced;
463467

464468
std::string strPostData = j.dump();
465469

0 commit comments

Comments
 (0)