diff --git a/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp b/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp index 69fac1c830..0c02343939 100644 --- a/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp +++ b/Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp @@ -1265,15 +1265,6 @@ void populatePlayerInfo( Player *player, Int pos) win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor()); win->winHide(FALSE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed()); - GadgetStaticTextSetText(win, winValue); - win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor()); - win->winHide(FALSE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", pos); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); @@ -2035,12 +2026,6 @@ void hideWindows( Int pos ) DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); win->winHide(TRUE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - win->winHide(TRUE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", i); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); @@ -2133,12 +2118,6 @@ void setObserverWindows( Player *player, Int i ) DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); win->winHide(TRUE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - win->winHide(TRUE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", i); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp index 7d824b2dae..d7d4c1db4e 100644 --- a/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp +++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/ScoreScreen.cpp @@ -1499,15 +1499,6 @@ void populatePlayerInfo( Player *player, Int pos) win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor()); win->winHide(FALSE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", pos); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - winValue.format(L"%d", scoreKpr->getTotalBuildingsDestroyed()); - GadgetStaticTextSetText(win, winValue); - win->winSetEnabledTextColors(color, win->winGetEnabledTextBorderColor()); - win->winHide(FALSE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", pos); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); @@ -2303,12 +2294,6 @@ void hideWindows( Int pos ) DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); win->winHide(TRUE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - win->winHide(TRUE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", i); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); @@ -2401,12 +2386,6 @@ void setObserverWindows( Player *player, Int i ) DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); win->winHide(TRUE); - // set the total BuildingsDestroyed - winName.format("ScoreScreen.wnd:StaticTextBuildingsDestroyed%d", i); - win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) ); - DEBUG_ASSERTCRASH(win,("Could not find window %s on the score screen", winName.str())); - win->winHide(TRUE); - // set the total Resources winName.format("ScoreScreen.wnd:StaticTextResources%d", i); win = TheWindowManager->winGetWindowFromId( parent, TheNameKeyGenerator->nameToKey( winName ) );