shithub: qk1

Download patch

ref: 6df96093d38a016bfc69130c75cfd0862cb88c8d
parent: 75c551ef0fe776e0a41cdf8ad91aa525766b1fd6
author: qwx <qwx@sciops.net>
date: Tue Jul 20 21:47:50 EDT 2021

in: grab mouse and mouse free look enabled by default

disable with -mlook

--- a/host.c
+++ b/host.c
@@ -623,6 +623,7 @@
 	}
 	IN_Init ();
 
+	Cbuf_InsertText ("+mlook\n");
 	Cbuf_InsertText ("exec quake.rc\n");
 
 	Hunk_AllocName (0, "-HOST_HUNKLEVEL-");
--- a/in.c
+++ b/in.c
@@ -26,7 +26,7 @@
 static Channel *inchan;
 static QLock mlck;
 
-static cvar_t m_windowed = {"m_windowed", "0", true};
+static cvar_t m_windowed = {"m_windowed", "1", true};
 static cvar_t m_filter = {"m_filter", "0", true};
 static int mouseon, fixms;
 static int oldmwin;
--- a/qw/cl_main.c
+++ b/qw/cl_main.c
@@ -1362,6 +1362,7 @@
 	Sbar_Init ();
 	CL_Init ();
 
+	Cbuf_InsertText ("+mlook\n");
 	Cbuf_InsertText ("exec quake.rc\n");
 	Cbuf_AddText ("echo Type connect <internet address> or use GameSpy to connect to a game.\n");
 	Cbuf_AddText ("cl_warncmd 1\n");
--- a/qw/in.c
+++ b/qw/in.c
@@ -25,7 +25,7 @@
 static Channel *inchan;
 static QLock mlck;
 
-cvar_t m_windowed = {"m_windowed", "0", true};
+cvar_t m_windowed = {"m_windowed", "1", true};
 static cvar_t m_filter = {"m_filter", "0", true};
 static int mouseon, fixms;
 static int oldmwin;