From 29c68384fd21c857c84a6d8ea9a6f730aaa2db74 Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sun, 29 Jun 2003 20:52:27 +0000 Subject: [PATCH] Fixed sticky pause and exit keys in main menu - resolves #385 git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1002 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/restart.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sc2/src/sc2code/restart.c b/sc2/src/sc2code/restart.c index e215e46ab..59433cd60 100644 --- a/sc2/src/sc2code/restart.c +++ b/sc2/src/sc2code/restart.c @@ -130,6 +130,10 @@ 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