mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 09:42:27 +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)
|
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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue