foxygit / doom Log in
commit 39494b5a451472db3b613446a5b1c8c2b0d92cf6
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Fri May 14 18:42:32 2010 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Fri May 14 18:42:32 2010 +0000

    Don't grab the mouse when the demo sequence advances.

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 1935
---
 src/i_video.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/i_video.c b/src/i_video.c
index 6936532d..bc3f17cf 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -85,6 +85,7 @@ static screen_mode_t *screen_modes_corrected[] = {
 };

 extern void M_QuitDOOM();
+extern boolean advancedemo;

 // SDL video driver name

@@ -228,7 +229,7 @@ static boolean MouseShouldBeGrabbed()

     // only grab mouse when playing levels (but not demos)

-    return (gamestate == GS_LEVEL) && !demoplayback;
+    return (gamestate == GS_LEVEL) && !demoplayback && !advancedemo;

 #endif /* #ifndef _WIN32_WCE */
 }