mirror of
https://github.com/ioquake/jedi-outcast.git
synced 2024-11-10 07:11:42 +00:00
powf -> Q_powf
This commit is contained in:
parent
a962a72805
commit
71dcd3be3f
3 changed files with 4 additions and 4 deletions
|
@ -377,7 +377,7 @@ static void CG_UpdateThirdPersonTargetDamp(void)
|
|||
|
||||
// Note that since there are a finite number of "practical" delta millisecond values possible,
|
||||
// the ratio should be initialized into a chart ultimately.
|
||||
ratio = powf(dampfactor, dtime);
|
||||
ratio = Q_powf(dampfactor, dtime);
|
||||
|
||||
// This value is how much distance is "left" from the ideal.
|
||||
VectorMA(cameraIdealTarget, -ratio, targetdiff, cameraCurTarget);
|
||||
|
@ -448,7 +448,7 @@ static void CG_UpdateThirdPersonCameraDamp(void)
|
|||
|
||||
// Note that since there are a finite number of "practical" delta millisecond values possible,
|
||||
// the ratio should be initialized into a chart ultimately.
|
||||
ratio = powf(dampfactor, dtime);
|
||||
ratio = Q_powf(dampfactor, dtime);
|
||||
|
||||
// This value is how much distance is "left" from the ideal.
|
||||
VectorMA(cameraIdealLoc, -ratio, locdiff, cameraCurLoc);
|
||||
|
|
|
@ -1328,7 +1328,7 @@ int irand(int min, int max)
|
|||
return(result);
|
||||
}
|
||||
|
||||
float powf ( float x, int y )
|
||||
float Q_powf ( float x, int y )
|
||||
{
|
||||
float r = x;
|
||||
for ( y--; y>0; y-- )
|
||||
|
|
|
@ -795,7 +795,7 @@ float Q_rsqrt( float f ); // reciprocal square root
|
|||
signed char ClampChar( int i );
|
||||
signed short ClampShort( int i );
|
||||
|
||||
float powf ( float x, int y );
|
||||
float Q_powf ( float x, int y );
|
||||
|
||||
// this isn't a real cheap function to call!
|
||||
int DirToByte( vec3_t dir );
|
||||
|
|
Loading…
Reference in a new issue