foxygit / doom Log in
commit f7293ce71e6e9b2d1dd3ac8dc95fbdf315022e56
Author:     Simon Howard <fraggle@gmail.com>
AuthorDate: Sat Jul 7 23:45:55 2007 +0000
Commit:     Simon Howard <fraggle@gmail.com>
CommitDate: Sat Jul 7 23:45:55 2007 +0000

    Don't grab the mouse if a drone player (no input, so it isn't needed).

    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 932
---
 src/i_video.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/i_video.c b/src/i_video.c
index ade81d03..f2ffe33c 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -175,6 +175,11 @@ static boolean MouseShouldBeGrabbed()
     if (fullscreen != FULLSCREEN_OFF)
         return true;

+    // Drone players don't need mouse focus
+
+    if (drone)
+        return false;
+
     // if we specify not to grab the mouse, never grab

     if (!grabmouse)