Fixed some cases where keys react too quickly across contexts

(introduced by previous fix).


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@984 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2003-06-19 05:58:59 +00:00
parent b8d5ce1988
commit 921f9f637e
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -237,6 +237,11 @@ DoInput (PVOID pInputState, BOOLEAN resetInput)
} }
} while ((*((PINPUT_STATE_DESC)pInputState)->InputFunc) } while ((*((PINPUT_STATE_DESC)pInputState)->InputFunc)
(pInputState)); (pInputState));
if (resetInput)
{
TFB_ResetControls ();
}
} }
BATTLE_INPUT_STATE BATTLE_INPUT_STATE
+2
View File
@@ -712,6 +712,8 @@ PickPlanetSide (PMENU_STATE pMS)
SetSemaphore (GraphicsSem); SetSemaphore (GraphicsSem);
DrawStatusMessage (NULL_PTR); DrawStatusMessage (NULL_PTR);
ClearSemaphore (GraphicsSem); ClearSemaphore (GraphicsSem);
FlushInput ();
if (pMenuState->flash_task) if (pMenuState->flash_task)
{ {
ConcludeTask (pMenuState->flash_task); ConcludeTask (pMenuState->flash_task);