- deleted set_int_xvel and set_int_zvel.

This commit is contained in:
Christoph Oelckers 2022-09-14 19:50:33 +02:00
parent bbdb953eda
commit 666f768413

View file

@ -112,22 +112,12 @@ public:
return vel.Z * zworldtoint;
}
void set_int_zvel(int v)
{
vel.Z = v * zinttoworld;
}
// Note: Both Duke and SW use Q12.4 for this, Exhumed doesn't seem to treat horizontal velocity with a fixed factor.
int int_xvel() const
{
return vel.X * worldtoint;
}
void set_int_xvel(int v)
{
vel.X = v * inttoworld;
}
vec3_t int_vel() const
{
return vec3_t(FloatToFixed(vel.X), FloatToFixed(vel.Y), FloatToFixed(vel.Z));