- Remove a seldom-used getTicrateScale() overload.

This commit is contained in:
Mitchell Richters 2022-05-30 21:06:32 +10:00
parent de88d4dc8b
commit 70d2a8dc78
2 changed files with 3 additions and 8 deletions

View file

@ -89,7 +89,7 @@ static double turnheldtime;
void updateTurnHeldAmt(double const scaleAdjust) void updateTurnHeldAmt(double const scaleAdjust)
{ {
turnheldtime += getTicrateScale(BUILDTICRATE, scaleAdjust); turnheldtime += getTicrateScale(BUILDTICRATE) * scaleAdjust;
} }
bool isTurboTurnTime() bool isTurboTurnTime()
@ -403,7 +403,7 @@ void PlayerAngle::applyinput(float const avel, ESyncBits* actions, double const
if (spin < 0) if (spin < 0)
{ {
// return spin to 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; spin += add;
if (spin > 0) if (spin > 0)
{ {

View file

@ -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; return value / GameTicRate;
} }
inline double getTicrateScale(double const value, double const scaleAdjust)
{
return scaleAdjust * getTicrateScale(value);
}
struct PlayerHorizon struct PlayerHorizon
{ {