fix water fof height calculation on slopes

# Conflicts:
#	src/p_mobj.c
This commit is contained in:
toaster 2022-03-18 19:54:19 +00:00
parent 6cfe9ad4b3
commit 134f3b5df5

View file

@ -3039,8 +3039,8 @@ void P_MobjCheckWater(mobj_t *mobj)
{
fixed_t topheight, bottomheight;
topheight = P_GetFFloorTopZAt (rover, mobj->x, mobj->y);
bottomheight = P_GetFFloorBottomZAt(rover, mobj->x, mobj->y);
topheight = P_GetSpecialTopZ(mobj, sectors + rover->secnum, sector);
bottomheight = P_GetSpecialBottomZ(mobj, sectors + rover->secnum, sector);
if (!(rover->flags & FF_EXISTS) || !(rover->flags & FF_SWIMMABLE)
|| (((rover->flags & FF_BLOCKPLAYER) && mobj->player)