From 36217c646898fb72c38e2a10c6d18fdfa5897311 Mon Sep 17 00:00:00 2001 From: MascaraSnake Date: Sun, 26 Dec 2021 21:33:20 +0100 Subject: [PATCH] Finish adapting slope vertices to UDMF --- extras/conf/udb/Includes/SRB222_things.cfg | 6 ++++++ src/p_setup.c | 3 +++ src/p_slopes.c | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/extras/conf/udb/Includes/SRB222_things.cfg b/extras/conf/udb/Includes/SRB222_things.cfg index 5cc285118..1cb3b41ee 100644 --- a/extras/conf/udb/Includes/SRB222_things.cfg +++ b/extras/conf/udb/Includes/SRB222_things.cfg @@ -4778,6 +4778,12 @@ udmf { title = "Slope Vertex"; sprite = "internal:vertexslope"; + arg0 + { + title = "Absolute height?"; + type = 11; + enum = "noyes"; + } } 751 diff --git a/src/p_setup.c b/src/p_setup.c index c6bcded53..cc5b32d73 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -4915,6 +4915,9 @@ static void P_ConvertBinaryMap(void) // Old behavior if Parameter is 0; add 360 to the angle for each consecutive star post. mapthings[i].args[0] = (mapthings[i].angle/360); break; + case 750: //Slope vertex + mapthings[i].args[0] = mapthings[i].extrainfo; + break; case 753: //Zoom tube waypoint mapthings[i].args[0] = mapthings[i].angle >> 8; mapthings[i].args[1] = mapthings[i].angle & 255; diff --git a/src/p_slopes.c b/src/p_slopes.c index bfca153a6..c0cc3a98e 100644 --- a/src/p_slopes.c +++ b/src/p_slopes.c @@ -469,7 +469,7 @@ static pslope_t *MakeViaMapthings(INT16 tag1, INT16 tag2, INT16 tag3, UINT8 flag vx[i].x = mt->x << FRACBITS; vx[i].y = mt->y << FRACBITS; vx[i].z = mt->z << FRACBITS; - if (!mt->extrainfo) + if (!mt->args[0]) vx[i].z += R_PointInSubsector(vx[i].x, vx[i].y)->sector->floorheight; }