shithub: duke3d

Download patch

ref: befdc2c0e10c8a7a41efd8f4110beee4af49e0d8
parent: 14beb90cff5951dab1eefb2457dbe4da9b349b39
parent: 2fe3bbb5565add2389ef617ed10154bb2d00d1d6
author: Fabien <[email protected]>
date: Fri Jun 19 08:58:41 EDT 2015

Merge pull request #39 from drschwabe/mouselook-strafing

Ensure X axis mouse aim works while strafing.

--- a/Game/src/player.c
+++ b/Game/src/player.c
@@ -2069,10 +2069,16 @@
     }
 
     if ( ACTION( gamefunc_Strafe_Left ) )
+        {
         svel += keymove;
+        angvel = (info.dyaw+previousInfoDyaw)/64;
+        }
 
     if ( ACTION( gamefunc_Strafe_Right ) )
+        {
         svel += -keymove;
+        angvel = (info.dyaw+previousInfoDyaw)/64;
+        }
 
     if ( ACTION(gamefunc_Move_Forward) )
         vel += keymove;