mirror of
https://github.com/UberGames/rpgxEF.git
synced 2025-04-22 08:50:48 +00:00
minor fix in cg_view.c
Signed-off-by: Harry Young <hendrik.gerritzen@googlemail.com>
This commit is contained in:
parent
387b55198c
commit
c72cf80ac4
1 changed files with 2 additions and 2 deletions
|
@ -447,7 +447,7 @@ static void CG_UpdateThirdPersonCameraDamp ( void ) {
|
|||
|
||||
//If we need to do any damping at all
|
||||
if ( cg_thirdPersonCameraDamp.value != 0.0 ) {
|
||||
float pitch;
|
||||
float pitch,dampFactor;
|
||||
|
||||
//get pitch, and make it all positive. Direction don't matter here
|
||||
pitch = Q_fabs( cameraFocusAngles[PITCH] );
|
||||
|
@ -460,7 +460,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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue