mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-24 21:31:46 +00:00
Clean up the start of P_CheckQuicksand
This commit is contained in:
parent
73e2d8d1bc
commit
c92a371aa9
1 changed files with 3 additions and 4 deletions
|
@ -2814,14 +2814,13 @@ static void P_CheckQuicksand(player_t *player)
|
|||
fixed_t sinkspeed;
|
||||
fixed_t topheight, bottomheight;
|
||||
|
||||
if (!(player->mo->subsector->sector->ffloors &&
|
||||
((!(player->mo->eflags & MFE_VERTICALFLIP) && player->mo->momz <= 0) ||
|
||||
(player->mo->eflags & MFE_VERTICALFLIP && player->mo->momz >= 0))))
|
||||
if (!(player->mo->subsector->sector->ffloors && P_MobjFlip(player->mo)*player->mo->momz <= 0))
|
||||
return;
|
||||
|
||||
for (rover = player->mo->subsector->sector->ffloors; rover; rover = rover->next)
|
||||
{
|
||||
if (!(rover->fofflags & FOF_EXISTS)) continue;
|
||||
if (!(rover->fofflags & FOF_EXISTS))
|
||||
continue;
|
||||
|
||||
if (!(rover->fofflags & FOF_QUICKSAND))
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue