mirror of
https://github.com/UberGames/rpgxEF.git
synced 2024-11-10 07:11:34 +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
86fda85067
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue