- handle remaining zvel comparisons.

This commit is contained in:
Christoph Oelckers 2022-09-01 01:10:51 +02:00
parent 56e5388150
commit 9f9858d8f4
3 changed files with 5 additions and 5 deletions

View file

@ -955,7 +955,7 @@ static void chickenarrow(DDukeActor* actor)
actor->set_int_ang(ang); actor->set_int_ang(ang);
if (actor->spr.hitag > 180) if (actor->spr.hitag > 180)
if (actor->int_zvel() <= 0) if (actor->float_zvel() <= 0)
actor->add_int_zvel( 200); actor->add_int_zvel( 200);
} }
} }
@ -1579,10 +1579,10 @@ void movetransports_r(void)
case STAT_MISC: case STAT_MISC:
case STAT_DUMMYPLAYER: case STAT_DUMMYPLAYER:
ll = abs(act2->int_zvel()) * zinttoworld; ll = abs(act2->float_zvel());
if (isRRRA()) if (isRRRA())
{ {
if (act2->int_zvel() >= 0) if (act2->float_zvel() >= 0)
warpdir = 2; warpdir = 2;
else else
warpdir = 1; warpdir = 1;

View file

@ -1441,7 +1441,7 @@ void AISpark::Tick(RunListEvent* ev)
return; return;
} }
if (pActor->int_zvel() <= 0) { if (pActor->float_zvel() <= 0) {
return; return;
} }
} }

View file

@ -834,7 +834,7 @@ void AIPlayer::Tick(RunListEvent* ev)
Gravity(pPlayerActor); Gravity(pPlayerActor);
if (pPlayerActor->int_zvel() >= 6500 && zVel < 6500) if (pPlayerActor->float_zvel() >= 6500/256. && zVel < 6500)
{ {
D3PlayFX(StaticSound[kSound17], pPlayerActor); D3PlayFX(StaticSound[kSound17], pPlayerActor);
} }