From: lordhavoc Date: Sat, 21 Oct 2000 10:24:28 +0000 (+0000) Subject: fix for player model tilting in chase_active mode X-Git-Tag: RELEASE_0_2_0_RC1~960 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5456462a532e65b437db3c539828ce23ea4d9497;p=xonotic%2Fdarkplaces.git fix for player model tilting in chase_active mode git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@60 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/view.c b/view.c index 0638f86f..f2daebbd 100644 --- 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 ();