Pressing F10 at main menu only tries to exit as long as you hold the
key down now (addresses #396) git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1012 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -149,6 +149,8 @@ DoConfirmExit (void)
|
||||
GameExiting = FALSE;
|
||||
GLOBAL (CurrentActivity) &= ~CHECK_ABORT;
|
||||
}
|
||||
ExitRequested = FALSE;
|
||||
GamePaused = FALSE;
|
||||
FlushInput ();
|
||||
SetContext (oldContext);
|
||||
}
|
||||
|
||||
@@ -84,6 +84,11 @@ DWORD InTime;
|
||||
static BOOLEAN
|
||||
DoRestart (PMENU_STATE pMS)
|
||||
{
|
||||
/* Cancel any presses of the Pause or Exit keys. */
|
||||
GamePaused = FALSE;
|
||||
ExitRequested = FALSE;
|
||||
|
||||
|
||||
if (!pMS->Initialized)
|
||||
{
|
||||
DrawRestartMenu ((BYTE)~0, pMS->CurState, pMS->CurFrame);
|
||||
@@ -130,10 +135,6 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
|
||||
SetFlashRect (NULL_PTR, (FRAME)0);
|
||||
ClearSemaphore (GraphicsSem);
|
||||
|
||||
/* Cancel any presses of the Pause or Exit keys. */
|
||||
GamePaused = FALSE;
|
||||
ExitRequested = FALSE;
|
||||
|
||||
return (FALSE);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user