From 96df518d3c63da5a3ae76bdc90de225ca5ff0b42 Mon Sep 17 00:00:00 2001 From: Christopher Schwarz Date: Sat, 3 Oct 2009 12:16:59 +0000 Subject: * Fix a minor oops in thirdperson pitch angle clamping code. --- src/cgame/cg_view.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/cgame/cg_view.c b/src/cgame/cg_view.c index 28ef9411..9b6996e9 100644 --- a/src/cgame/cg_view.c +++ b/src/cgame/cg_view.c @@ -357,12 +357,12 @@ void CG_OffsetThirdPersonView( void ) // that's really annoying. // However, when we're not on the floor or ceiling (wallwalk) pitch // may not be pitch, so just let it go. - if( surfNormal[ 2 ] > 0.5 || surfNormal[ 2 ] < -0.5 ) + if( surfNormal[ 2 ] > 0.5f || surfNormal[ 2 ] < -0.5f ) { - if( rotationAngles[ PITCH ] > 85 ) - rotationAngles[ PITCH ] = 85; - else if( rotationAngles[ PITCH ] < -85 ) - rotationAngles[ PITCH ] = 85; + if( rotationAngles[ PITCH ] > 85.0f ) + rotationAngles[ PITCH ] = 85.0f; + else if( rotationAngles[ PITCH ] < -85.0f ) + rotationAngles[ PITCH ] = -85.0f; } // Perform the rotations specified by rotationAngles. -- cgit