mirror of
https://github.com/DrBeef/Raze.git
synced 2025-04-03 14:40:45 +00:00
- Remove a seldom-used getTicrateScale()
overload.
This commit is contained in:
parent
de88d4dc8b
commit
70d2a8dc78
2 changed files with 3 additions and 8 deletions
|
@ -89,7 +89,7 @@ static double turnheldtime;
|
|||
|
||||
void updateTurnHeldAmt(double const scaleAdjust)
|
||||
{
|
||||
turnheldtime += getTicrateScale(BUILDTICRATE, scaleAdjust);
|
||||
turnheldtime += getTicrateScale(BUILDTICRATE) * scaleAdjust;
|
||||
}
|
||||
|
||||
bool isTurboTurnTime()
|
||||
|
@ -403,7 +403,7 @@ void PlayerAngle::applyinput(float const avel, ESyncBits* actions, double const
|
|||
if (spin < 0)
|
||||
{
|
||||
// return spin to 0
|
||||
double add = getTicrateScale(!(*actions & SB_CROUCH) ? SPINSTAND : SPINCROUCH, scaleAdjust);
|
||||
double add = getTicrateScale(!(*actions & SB_CROUCH) ? SPINSTAND : SPINCROUCH) * scaleAdjust;
|
||||
spin += add;
|
||||
if (spin > 0)
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ binangle getincanglebam(binangle a, binangle na);
|
|||
|
||||
//---------------------------------------------------------------------------
|
||||
//
|
||||
// Functions for dividing an input value by current ticrate for angle/horiz scaling.
|
||||
// Function for dividing an input value by current ticrate for angle/horiz scaling.
|
||||
//
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
@ -21,11 +21,6 @@ inline double getTicrateScale(double const value)
|
|||
return value / GameTicRate;
|
||||
}
|
||||
|
||||
inline double getTicrateScale(double const value, double const scaleAdjust)
|
||||
{
|
||||
return scaleAdjust * getTicrateScale(value);
|
||||
}
|
||||
|
||||
|
||||
struct PlayerHorizon
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue