Skip to content

Commit f7a77ab

Browse files
committed
refactor: Remove duplicate buildings destroyed score screen logic
1 parent c12bab6 commit f7a77ab

File tree

2 files changed

+0
-18
lines changed
  • GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus
  • Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus

2 files changed

+0
-18
lines changed

Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1265,15 +1265,6 @@ void populatePlayerInfo( Player *player, Int pos)
12651265
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
12661266
win->winHide(FALSE);
12671267

1268-
// set the total BuildingsDestroyed
1269-
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos);
1270-
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
1271-
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
1272-
winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed());
1273-
GadgetStaticTextSetText(win, winValue);
1274-
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
1275-
win->winHide(FALSE);
1276-
12771268
// set the total Resources
12781269
winName.format("ScoreScreen.wnd:StaticTextResources%d", pos);
12791270
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,15 +1499,6 @@ void populatePlayerInfo( Player *player, Int pos)
14991499
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
15001500
win->winHide(FALSE);
15011501

1502-
// set the total BuildingsDestroyed
1503-
winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos);
1504-
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );
1505-
DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str()));
1506-
winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed());
1507-
GadgetStaticTextSetText(win, winValue);
1508-
win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor());
1509-
win->winHide(FALSE);
1510-
15111502
// set the total Resources
15121503
winName.format("ScoreScreen.wnd:StaticTextResources%d", pos);
15131504
win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );

0 commit comments

Comments
 (0)