- eliminate the last int_zvel call

This commit is contained in:
Christoph Oelckers 2022-09-14 20:55:50 +02:00
parent cd6c524b90
commit 671e75ba5f
2 changed files with 1 additions and 6 deletions

View file

@ -107,11 +107,6 @@ public:
spr.angle = spr.angle.Normalized360();
}
int int_zvel() const
{
return vel.Z * zworldtoint;
}
// 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
{

View file

@ -1923,7 +1923,7 @@ void movetransports_d(void)
case STAT_FALLER:
case STAT_DUMMYPLAYER:
ll = abs(act2->int_zvel()) * zinttoworld;
ll = abs(act2->vel.Z);
{
warpspriteto = 0;