diff options
author | Christopher Schwarz <lakitu7@gmail.com> | 2009-10-03 12:27:44 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:15:58 +0000 |
commit | 80e1e1e116ec0eea3e82c395700e12cc301bbb35 (patch) | |
tree | 7805af3083acca55c97258b10e292d3f6a886860 /src/cgame | |
parent | 95e579acefaefba9badcba5b1a2192a5c108766f (diff) |
* Should fix thirdpersonpitchfollow in shoulderview mode
Diffstat (limited to 'src/cgame')
-rw-r--r-- | src/cgame/cg_view.c | 8 |
1 files 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++ ) |