Finish adapting slope vertices to UDMF

This commit is contained in:
MascaraSnake 2021-12-26 21:33:20 +01:00
parent 8535b595d6
commit 36217c6468
3 changed files with 10 additions and 1 deletions

View file

@ -4778,6 +4778,12 @@ udmf
{
title = "Slope Vertex";
sprite = "internal:vertexslope";
arg0
{
title = "Absolute height?";
type = 11;
enum = "noyes";
}
}
751

View file

@ -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;

View file

@ -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;
}