From 80e1e1e116ec0eea3e82c395700e12cc301bbb35 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:27:44 +0000 Subject: * Should fix thirdpersonpitchfollow in shoulderview mode --- src/cgame/cg_view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c index 1cbdd063..9c4f05a5 100644 --- a/src/cgame/cg_view.c +++ b/src/cgame/cg_view.c @@ -541,10 +541,12 @@ void CG_OffsetShoulderView( void ) // Handle pitch. rotationAngles[ PITCH ] = mousePitch; + // Ignore following pitch; it's too jerky otherwise. if( cg_thirdPersonPitchFollow.integer ) mousePitch += cg.refdefViewAngles[ PITCH ]; - AngleNormalize180( rotationAngles[ PITCH ] ); + + rotationAngles[ PITCH ] = AngleNormalize180( rotationAngles[ PITCH ] ); if( rotationAngles [ PITCH ] < -90.0f ) rotationAngles [ PITCH ] = -90.0f; if( rotationAngles [ PITCH ] > 90.0f ) rotationAngles [ PITCH ] = 90.0f; @@ -558,10 +560,8 @@ void CG_OffsetShoulderView( void ) !BG_RotateAxis( cg.snap->ps.grapplePoint, axis, rotaxis, qfalse, cg.snap->ps.eFlags & EF_WALLCLIMBCEILING ) ) AxisCopy( axis, rotaxis ); - AxisToAngles( rotaxis, rotationAngles ); - for( i = 0; i < 3; i++ ) - AngleNormalize180( rotationAngles[ i ] ); + AxisToAngles( rotaxis, rotationAngles ); // Actually set the viewangles. for( i = 0; i < 3; i++ ) -- cgit