From 9914c5975470c6cfcbdf472e7fa9b56c9bb3dbe2 Mon Sep 17 00:00:00 2001 From: sezero Date: Thu, 25 Aug 2011 21:37:34 +0000 Subject: [PATCH] mlook and lookspring fixes by Jacques Krige : http://www.quake-1.com/docs/quakesrc.org/1.html git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@481 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/in_sdl.c | 5 ++++- quakespasm/Quake/view.c | 3 ++- quakespasm/README.html | 1 - quakespasm/README.sgml | 1 - quakespasm/README.txt | 2 -- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/quakespasm/Quake/in_sdl.c b/quakespasm/Quake/in_sdl.c index dc2f4c3d..4d52e47b 100644 --- a/quakespasm/Quake/in_sdl.c +++ b/quakespasm/Quake/in_sdl.c @@ -159,7 +159,10 @@ void IN_Move (usercmd_t *cmd) cl.viewangles[YAW] -= m_yaw.value * dmx; if (in_mlook.state & 1) - V_StopPitchDrift (); + { + if (dmx || dmy) + V_StopPitchDrift (); + } if ( (in_mlook.state & 1) && !(in_strafe.state & 1)) { diff --git a/quakespasm/Quake/view.c b/quakespasm/Quake/view.c index 2df8d174..d5856297 100644 --- a/quakespasm/Quake/view.c +++ b/quakespasm/Quake/view.c @@ -197,7 +197,8 @@ void V_DriftPitch (void) if ( cl.driftmove > v_centermove.value) { - V_StartPitchDrift (); + if (lookspring.value) + V_StartPitchDrift (); } return; } diff --git a/quakespasm/README.html b/quakespasm/README.html index fa28681b..c0ba20c6 100644 --- a/quakespasm/README.html +++ b/quakespasm/README.html @@ -256,7 +256,6 @@ Compile time options include
  • Test usb keyboards. Do the keypads work? Make the OSX apple key work.
  • Complete the unix user directories support
  • Finalize OSX automatic updating feature
  • -
  • Fix Centerview (V_StartPitchDrift)
  • There is still an unnecessary screen render on program init under some conditions, when using the "-window/-fullscreen" options.
  • diff --git a/quakespasm/README.sgml b/quakespasm/README.sgml index 1fe01edd..8301f543 100644 --- a/quakespasm/README.sgml +++ b/quakespasm/README.sgml @@ -175,7 +175,6 @@ Alternatively, have a look at Makefile.darwin for more instructions on Test usb keyboards. Do the keypads work? Make the OSX apple key work. Complete the unix user directories support Finalize OSX automatic updating feature -Fix Centerview (V_StartPitchDrift) There is still an unnecessary screen render on program init under some conditions, when using the "-window/-fullscreen" options. diff --git a/quakespasm/README.txt b/quakespasm/README.txt index de76cefe..46fae804 100644 --- a/quakespasm/README.txt +++ b/quakespasm/README.txt @@ -308,8 +308,6 @@ o Finalize OSX automatic updating feature - o Fix Centerview (V_StartPitchDrift) - o There is still an unnecessary screen render on program init under some conditions, when using the "-window/-fullscreen" options.