mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 04:20:42 +00:00
- handle remaining zvel comparisons.
This commit is contained in:
parent
56e5388150
commit
9f9858d8f4
3 changed files with 5 additions and 5 deletions
|
@ -955,7 +955,7 @@ static void chickenarrow(DDukeActor* actor)
|
|||
actor->set_int_ang(ang);
|
||||
|
||||
if (actor->spr.hitag > 180)
|
||||
if (actor->int_zvel() <= 0)
|
||||
if (actor->float_zvel() <= 0)
|
||||
actor->add_int_zvel( 200);
|
||||
}
|
||||
}
|
||||
|
@ -1579,10 +1579,10 @@ void movetransports_r(void)
|
|||
case STAT_MISC:
|
||||
case STAT_DUMMYPLAYER:
|
||||
|
||||
ll = abs(act2->int_zvel()) * zinttoworld;
|
||||
ll = abs(act2->float_zvel());
|
||||
if (isRRRA())
|
||||
{
|
||||
if (act2->int_zvel() >= 0)
|
||||
if (act2->float_zvel() >= 0)
|
||||
warpdir = 2;
|
||||
else
|
||||
warpdir = 1;
|
||||
|
|
|
@ -1441,7 +1441,7 @@ void AISpark::Tick(RunListEvent* ev)
|
|||
return;
|
||||
}
|
||||
|
||||
if (pActor->int_zvel() <= 0) {
|
||||
if (pActor->float_zvel() <= 0) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -834,7 +834,7 @@ void AIPlayer::Tick(RunListEvent* ev)
|
|||
|
||||
Gravity(pPlayerActor);
|
||||
|
||||
if (pPlayerActor->int_zvel() >= 6500 && zVel < 6500)
|
||||
if (pPlayerActor->float_zvel() >= 6500/256. && zVel < 6500)
|
||||
{
|
||||
D3PlayFX(StaticSound[kSound17], pPlayerActor);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue