File tree Expand file tree Collapse file tree
GeneralsMD/Code/GameEngineDevice/Source/Win32Device/Common
Generals/Code/GameEngineDevice/Source/Win32Device/Common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,30 +90,6 @@ void Win32GameEngine::update()
9090 // call the engine normal update
9191 GameEngine::update ();
9292
93- extern HWND ApplicationHWnd;
94- if (ApplicationHWnd && ::IsIconic (ApplicationHWnd)) {
95- while (ApplicationHWnd && ::IsIconic (ApplicationHWnd)) {
96- // We are alt-tabbed out here. Sleep a bit, & process windows
97- // so that we can become un-alt-tabbed out.
98- Sleep (5 );
99- serviceWindowsOS ();
100-
101- if (TheLAN != nullptr ) {
102- // BGC - need to update TheLAN so we can process and respond to other
103- // people's messages who may not be alt-tabbed out like we are.
104- TheLAN->setIsActive (isActive ());
105- TheLAN->update ();
106- }
107-
108- // If we are running a multiplayer game, keep running the logic.
109- // There is code in the client to skip client redraw if we are
110- // iconic. jba.
111- if (TheGameEngine->getQuitting () || TheGameLogic->isInInternetGame () || TheGameLogic->isInLanGame ()) {
112- break ; // keep running.
113- }
114- }
115- }
116-
11793 // allow windows to perform regular windows maintenance stuff like msgs
11894 serviceWindowsOS ();
11995
Original file line number Diff line number Diff line change @@ -90,36 +90,6 @@ void Win32GameEngine::update()
9090 // call the engine normal update
9191 GameEngine::update ();
9292
93- extern HWND ApplicationHWnd;
94- if (ApplicationHWnd && ::IsIconic (ApplicationHWnd)) {
95- while (ApplicationHWnd && ::IsIconic (ApplicationHWnd)) {
96- // We are alt-tabbed out here. Sleep a bit, & process windows
97- // so that we can become un-alt-tabbed out.
98- Sleep (5 );
99- serviceWindowsOS ();
100-
101- if (TheLAN != nullptr ) {
102- // BGC - need to update TheLAN so we can process and respond to other
103- // people's messages who may not be alt-tabbed out like we are.
104- TheLAN->setIsActive (isActive ());
105- TheLAN->update ();
106- }
107-
108- // If we are running a multiplayer game, keep running the logic.
109- // There is code in the client to skip client redraw if we are
110- // iconic. jba.
111- if (TheGameEngine->getQuitting () || TheGameLogic->isInInternetGame () || TheGameLogic->isInLanGame ()) {
112- break ; // keep running.
113- }
114- }
115-
116- // When we are alt-tabbed out... the MilesAudioManager seems to go into a coma sometimes
117- // and not regain focus properly when we come back. This seems to wake it up nicely.
118- AudioAffect aa = (AudioAffect)0x10 ;
119- TheAudio->setVolume (TheAudio->getVolume ( aa ), aa );
120-
121- }
122-
12393 // allow windows to perform regular windows maintenance stuff like msgs
12494 serviceWindowsOS ();
12595
You can’t perform that action at this time.
0 commit comments