ref: 0493d7b7bb62d7d260e58910f2bf8daa47c2fa21
parent: c7c68fb9f3355063dbb6091bfe71f276cc43743d
author: qwx <[email protected]>
date: Wed Aug 4 20:40:48 EDT 2021
in: fix stupid mouse movement precision loss also fixes m_filter etc, no idea why this was changed between quake 1 and 2
--- a/in.c
+++ b/in.c
@@ -143,8 +143,8 @@
void
IN_Move(usercmd_t *cmd)
{
- static int oldmx, oldmy;
- int mx, my;
+ static double oldmx, oldmy;
+ double mx, my;
if(!mouseon)
return;
@@ -159,11 +159,9 @@
oldmx = dx;
oldmy = dy;
dx = dy = 0;
- if(!mx && !my)
- return;
+
mx *= sensitivity->value;
my *= sensitivity->value;
-
/* add mouse x/y movement to cmd */
if(in_strafe.state & 1 || lookstrafe->value && mlooking)
cmd->sidemove += m_side->value * mx;