diff options
author | Simon Howard | 2013-10-12 03:22:10 +0000 |
---|---|---|
committer | Simon Howard | 2013-10-12 03:22:10 +0000 |
commit | 6cf2d4cc8cfec2037ac55535ef69fe5b7bb39cb8 (patch) | |
tree | 3bb0d8bbd54e2ae3b6d0a3e2d2118e270eb9ce85 /src/doom | |
parent | 6e09cdf285c5f7526138c905130d17c7248eef63 (diff) | |
download | chocolate-doom-6cf2d4cc8cfec2037ac55535ef69fe5b7bb39cb8.tar.gz chocolate-doom-6cf2d4cc8cfec2037ac55535ef69fe5b7bb39cb8.tar.bz2 chocolate-doom-6cf2d4cc8cfec2037ac55535ef69fe5b7bb39cb8.zip |
Tweak mouse grab behavior: don't arbitrarily warp the mouse at game
startup.
Subversion-branch: /branches/v2-branch
Subversion-revision: 2699
Diffstat (limited to 'src/doom')
-rw-r--r-- | src/doom/d_main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c index eb36f4bb..931c50a8 100644 --- a/src/doom/d_main.c +++ b/src/doom/d_main.c @@ -409,7 +409,7 @@ boolean D_GrabMouseCallback(void) // only grab mouse when playing levels (but not demos) - return (gamestate == GS_LEVEL) && !demoplayback; + return (gamestate == GS_LEVEL) && !demoplayback && !advancedemo; } // @@ -426,9 +426,9 @@ void D_DoomLoop (void) I_SetWindowTitle(gamedescription); I_GraphicsCheckCommandLine(); + I_SetGrabMouseCallback(D_GrabMouseCallback); I_InitGraphics(); I_EnableLoadingDisk(); - I_SetGrabMouseCallback(D_GrabMouseCallback); V_RestoreBuffer(); R_ExecuteSetViewSize(); |