From b9b24419ee8855c2456330131ac88af27040eca1 Mon Sep 17 00:00:00 2001 From: "seer-by-sentry[bot]" <157164994+seer-by-sentry[bot]@users.noreply.github.com> Date: Thu, 7 May 2026 21:17:39 +0000 Subject: [PATCH] feat(generals_online): Exclude local disconnect stats retrieval in online builds --- Core/GameEngine/Source/GameClient/GUI/LoadScreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/GameEngine/Source/GameClient/GUI/LoadScreen.cpp b/Core/GameEngine/Source/GameClient/GUI/LoadScreen.cpp index 929082397cc..957830b1efa 100644 --- a/Core/GameEngine/Source/GameClient/GUI/LoadScreen.cpp +++ b/Core/GameEngine/Source/GameClient/GUI/LoadScreen.cpp @@ -1525,7 +1525,9 @@ GameSpyLoadScreen::~GameSpyLoadScreen() } } +#if !defined(GENERALS_ONLINE) extern Int GetAdditionalDisconnectsFromUserFile(Int playerID); +#endif void GameSpyLoadScreen::init( GameInfo *game ) { @@ -1774,7 +1776,9 @@ GameSlot *lSlot = game->getSlot(game->getLocalSlotNum()); { numGames += it->second; } +#if !defined(GENERALS_ONLINE) numGames += GetAdditionalDisconnectsFromUserFile(stats.id); +#endif formatString.format(L"%d", numGames); GadgetStaticTextSetText(m_playerTotalDisconnects[netSlot], formatString);