]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix for player model tilting in chase_active mode
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:24:28 +0000 (10:24 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 21 Oct 2000 10:24:28 +0000 (10:24 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@60 d7cf8633-e32d-0410-b094-e92efae38249

view.c

diff --git a/view.c b/view.c
index 0638f86f07fd2d4977718faf9754eb86a3d55136..f2daebbd8dc2e6f7ff8106681907bc789b0e5ee3 100644 (file)
--- a/view.c
+++ b/view.c
@@ -726,8 +726,11 @@ void V_CalcRefdef (void)
 
 // transform the view offset by the model's matrix to get the offset from
 // model origin for the view
-       ent->angles[YAW] = cl.viewangles[YAW];  // the model should face the view dir
-       ent->angles[PITCH] = -cl.viewangles[PITCH];     // the model should face the view dir
+       if (!chase_active.value) // LordHavoc: get rid of angle problems in chase_active mode
+       {
+               ent->angles[YAW] = cl.viewangles[YAW];  // the model should face the view dir
+               ent->angles[PITCH] = -cl.viewangles[PITCH];     // the model should face the view dir
+       }
                                                                                
        
        bob = V_CalcBob ();