From e1dcf80f8d55c2ec5cf5cddb741602de9eeebca9 Mon Sep 17 00:00:00 2001 From: Sally Coolatta Date: Sun, 27 Sep 2020 02:48:03 -0400 Subject: [PATCH] Fixed waypoints using bad Z height in non-UDMF maps --- src/p_setup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_setup.c b/src/p_setup.c index f49272582..8e1805856 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -1357,7 +1357,9 @@ static void P_LoadThings(UINT8 *data) 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. else mt->z = mt->options >> ZSHIFT;