minor fix in cg_view.c

Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
This commit is contained in:
Harry Young 2013-08-14 00:08:14 +02:00
parent 387b55198c
commit 86fda85067

View file

@ -441,6 +441,7 @@ Looks somewhat similar to Target Damp
static void CG_UpdateThirdPersonCameraDamp ( void ) {
trace_t tr;
vec3_t locationDiff;
float dampFactor;
//Initialise our goal angle
CG_CalcIdealThirdPersonViewLocation();
@ -460,7 +461,7 @@ static void CG_UpdateThirdPersonCameraDamp ( void ) {
//The JKA code says these statments are to get it to damp less the more u look up.
//Makes sense. Still looking how tho lol
pitch /= 115.0; //magic number I guess lol.
float dampFactor = (1.0-cg_thirdPersonCameraDamp.value) * ( pitch * pitch );
dampFactor = (1.0-cg_thirdPersonCameraDamp.value) * ( pitch * pitch );
dampFactor += cg_thirdPersonCameraDamp.value;