File tree Expand file tree Collapse file tree
GeneralsMD/Code/GameEngine/Source/GameClient
Generals/Code/GameEngine/Source/GameClient Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5822,12 +5822,12 @@ void InGameUI::resetIdleWorker()
58225822
58235823void InGameUI::recreateControlBar ()
58245824{
5825- Bool wasVisible = FALSE ;
58265825 GameWindow *parent = TheWindowManager->winGetWindowFromId (nullptr , TheNameKeyGenerator->nameToKey (" ControlBar.wnd:ControlBarParent" ));
5827- if (parent)
5826+ if (! parent)
58285827 {
5829- wasVisible = !parent-> winIsHidden () ;
5828+ return ;
58305829 }
5830+ Bool wasVisible = !parent->winIsHidden ();
58315831
58325832 GameWindow *win = TheWindowManager->winGetWindowFromId (nullptr , TheNameKeyGenerator->nameToKey (" ControlBar.wnd:ControlBarParent" ));
58335833 if (win)
Original file line number Diff line number Diff line change @@ -5995,12 +5995,12 @@ void InGameUI::resetIdleWorker()
59955995
59965996void InGameUI::recreateControlBar ()
59975997{
5998- Bool wasVisible = FALSE ;
59995998 GameWindow *parent = TheWindowManager->winGetWindowFromId (nullptr , TheNameKeyGenerator->nameToKey (" ControlBar.wnd:ControlBarParent" ));
6000- if (parent)
5999+ if (! parent)
60016000 {
6002- wasVisible = !parent-> winIsHidden () ;
6001+ return ;
60036002 }
6003+ Bool wasVisible = !parent->winIsHidden ();
60046004
60056005 GameWindow *win = TheWindowManager->winGetWindowFromId (nullptr , TheNameKeyGenerator->nameToKey (" ControlBar.wnd:ControlBarParent" ));
60066006 if (win)
You can’t perform that action at this time.
0 commit comments