- Make scaletozero() static again within gameinput.cpp.

This commit is contained in:
Mitchell Richters 2023-04-23 09:06:31 +10:00
parent 05cb6563f3
commit 175f858047
2 changed files with 1 additions and 2 deletions

View file

@ -64,7 +64,7 @@ static inline DAngle getscaledangle(const DAngle angle, const double scale, cons
return (angle.Normalized180() * getTicrateScale(scale)) + DAngle::fromDeg(push);
}
bool scaletozero(DAngle& angle, const double scale, const double push)
static bool scaletozero(DAngle& angle, const double scale, const double push = (7646143. / 110386328.))
{
const auto sgn = angle.Sgn();

View file

@ -174,4 +174,3 @@ extern GameInput gameInput;
class FSerializer;
FSerializer& Serialize(FSerializer& arc, const char* keyname, PlayerAngles& w, PlayerAngles* def);
void processCrouchToggle(bool& toggle, ESyncBits& actions, const bool crouchable, const bool disabletoggle);
bool scaletozero(DAngle& angle, const double scale, const double push = (7646143. / 110386328.));