summaryrefslogtreecommitdiff
path: root/src/strife/d_main.c
diff options
context:
space:
mode:
authorSimon Howard2013-10-08 01:02:20 +0000
committerSimon Howard2013-10-08 01:02:20 +0000
commitfe63589f1d69401f4a587b773832671112cc4cb6 (patch)
tree85ea3aecf06fdd843b5445e45dd13444d596df2a /src/strife/d_main.c
parent2f256359cf616ad2a077bcad132691d5ce99e546 (diff)
downloadchocolate-doom-fe63589f1d69401f4a587b773832671112cc4cb6.tar.gz
chocolate-doom-fe63589f1d69401f4a587b773832671112cc4cb6.tar.bz2
chocolate-doom-fe63589f1d69401f4a587b773832671112cc4cb6.zip
Don't grab the mouse at the Strife startup screen.
Subversion-branch: /branches/v2-branch Subversion-revision: 2697
Diffstat (limited to 'src/strife/d_main.c')
-rw-r--r--src/strife/d_main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/strife/d_main.c b/src/strife/d_main.c
index 3d0d269c..855dae7d 100644
--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -479,8 +479,8 @@ boolean D_GrabMouseCallback(void)
if (drone)
return false;
- // when menu is active or game is paused, release the mouse
-
+ // when menu is active or game is paused, release the mouse.
+
if (menuactive || paused)
return false;
@@ -489,6 +489,13 @@ boolean D_GrabMouseCallback(void)
return (gamestate == GS_LEVEL) && !demoplayback;
}
+// During startup, never grab the mouse.
+
+static boolean D_StartupGrabCallback(void)
+{
+ return false;
+}
+
//
// D_DoomLoop
//
@@ -1156,6 +1163,7 @@ static void D_InitIntroSequence(void)
// In vanilla Strife, Mode 13h was initialized directly in D_DoomMain.
// We have to be a little more courteous of the low-level code here.
I_SetWindowTitle(gamedescription);
+ I_SetGrabMouseCallback(D_StartupGrabCallback);
I_InitGraphics();
V_RestoreBuffer(); // make the V_ routines work