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:
@@ -1,4 +1,5 @@
|
|||||||
Changes towards version 0.7:
|
Changes towards version 0.7:
|
||||||
|
- Added Input Frames to pause code to stop infinite loops - Michael
|
||||||
- Added more netplay debug code - SvdB
|
- Added more netplay debug code - SvdB
|
||||||
- Added uio_fprintf() and uio_vfprintf() - SvdB
|
- Added uio_fprintf() and uio_vfprintf() - SvdB
|
||||||
- Any input will register for at least one frame (Bug #864) - Michael
|
- Any input will register for at least one frame (Bug #864) - Michael
|
||||||
|
|||||||
@@ -189,13 +189,22 @@ PauseGame (void)
|
|||||||
//LockMutex (GraphicsLock);
|
//LockMutex (GraphicsLock);
|
||||||
|
|
||||||
while (ImmediateInputState.menu[KEY_PAUSE])
|
while (ImmediateInputState.menu[KEY_PAUSE])
|
||||||
|
{
|
||||||
|
BeginInputFrame ();
|
||||||
TaskSwitch ();
|
TaskSwitch ();
|
||||||
|
}
|
||||||
|
|
||||||
while (!ImmediateInputState.menu[KEY_PAUSE])
|
while (!ImmediateInputState.menu[KEY_PAUSE])
|
||||||
|
{
|
||||||
|
BeginInputFrame ();
|
||||||
TaskSwitch ();
|
TaskSwitch ();
|
||||||
|
}
|
||||||
|
|
||||||
while (ImmediateInputState.menu[KEY_PAUSE])
|
while (ImmediateInputState.menu[KEY_PAUSE])
|
||||||
|
{
|
||||||
|
BeginInputFrame ();
|
||||||
TaskSwitch ();
|
TaskSwitch ();
|
||||||
|
}
|
||||||
|
|
||||||
GamePaused = FALSE;
|
GamePaused = FALSE;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user