Added input frames to PauseGame(), stopping infinite loops
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2696 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -189,13 +189,22 @@ PauseGame (void)
|
||||
//LockMutex (GraphicsLock);
|
||||
|
||||
while (ImmediateInputState.menu[KEY_PAUSE])
|
||||
{
|
||||
BeginInputFrame ();
|
||||
TaskSwitch ();
|
||||
}
|
||||
|
||||
while (!ImmediateInputState.menu[KEY_PAUSE])
|
||||
{
|
||||
BeginInputFrame ();
|
||||
TaskSwitch ();
|
||||
}
|
||||
|
||||
while (ImmediateInputState.menu[KEY_PAUSE])
|
||||
{
|
||||
BeginInputFrame ();
|
||||
TaskSwitch ();
|
||||
}
|
||||
|
||||
GamePaused = FALSE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user