Fixed waypoints using bad Z height in non-UDMF maps

This commit is contained in:
Sally Coolatta 2020-09-27 02:48:03 -04:00
parent e0957b9250
commit e1dcf80f8d

View file

@ -1357,7 +1357,9 @@ static void P_LoadThings(UINT8 *data)
mt->type &= 4095; mt->type &= 4095;
if (mt->type == 1705 || (mt->type == 750 && mt->extrainfo)) if (mt->type == mobjinfo[MT_WAYPOINT].doomednum)
mt->z = 0; // Waypoints set Z pos in other methods
else if (mt->type == 1705 || (mt->type == 750 && mt->extrainfo))
mt->z = mt->options; // NiGHTS Hoops use the full flags bits to set the height. mt->z = mt->options; // NiGHTS Hoops use the full flags bits to set the height.
else else
mt->z = mt->options >> ZSHIFT; mt->z = mt->options >> ZSHIFT;