Skip to content

Commit f4177d4

Browse files
committed
Show git tag/hash for each player.
1 parent eb84ebf commit f4177d4

File tree

1 file changed

+7
-2
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks

1 file changed

+7
-2
lines changed

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Diplomacy.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,8 +574,13 @@ void PopulateInGameDiplomacyPopup( void )
574574
}
575575

576576
// TheSuperHackers @feature Caball009 06/11/2025 Set special status for players that are using a patched client version.
577-
if (slot->isHuman() && (TheGameInfo->getLocalSlotNum() == slotNum || slot->getProductVersion() > 0))
578-
text.format(L"%s [%s]", text.str(), TheVersion->getUnicodeGitTagOrHash().str());
577+
if (slot->isHuman() && slot->getProductInfo().productVersion > 0)
578+
{
579+
UnicodeString gitTagOrHash;
580+
gitTagOrHash.translate(slot->getProductInfo().gitTagOrHash);
581+
582+
text.format(L"%s [%s]", text.str(), gitTagOrHash.str());
583+
}
579584

580585
staticTextStatus[rowNum]->winSetEnabledTextColors(frontColor, backColor);
581586
GadgetStaticTextSetText(staticTextStatus[rowNum], text);

0 commit comments

Comments
 (0)