summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-03 12:16:59 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:49 +0000
commit96df518d3c63da5a3ae76bdc90de225ca5ff0b42 (patch)
tree97f0097adddab193c78297d2e4a7729062f5ee06 /src
parent2372e0d0cb645a03747f560d6dab0fbd765b169a (diff)
* Fix a minor oops in thirdperson pitch angle clamping code.
Diffstat (limited to 'src')
-rw-r--r--src/cgame/cg_view.c10
1 files changed, 5 insertions, 5 deletions
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.