Was checking something out for a mapper and noticed this block of code should be nested deeper.

git-svn-id: https://svn.eduke32.com/eduke32@7222 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2018-11-18 18:13:19 +00:00
parent 592ee52d2b
commit 279bdca726

View file

@ -3534,7 +3534,6 @@ ACTOR_STATIC void G_MoveTransports(void)
doWater = P_Submerge(sectSprite, playerNum, pPlayer, sectNum, sprite[OW(spriteNum)].sectnum);
else if (sectLotag == ST_2_UNDERWATER)
doWater = P_Emerge(sectSprite, playerNum, pPlayer, sectNum, sprite[OW(spriteNum)].sectnum);
}
if (doWater == 1)
{
@ -3544,6 +3543,7 @@ ACTOR_STATIC void G_MoveTransports(void)
P_FinishWaterChange(sectSprite, pPlayer, sectLotag, OW(spriteNum), sprite[OW(spriteNum)].sectnum);
}
}
}
else if (!(sectLotag == ST_1_ABOVE_WATER && pPlayer->on_ground == 1))
break;
}