mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 15:32:33 +00:00
Finish adapting slope vertices to UDMF
This commit is contained in:
parent
8535b595d6
commit
36217c6468
3 changed files with 10 additions and 1 deletions
|
@ -4778,6 +4778,12 @@ udmf
|
|||
{
|
||||
title = "Slope Vertex";
|
||||
sprite = "internal:vertexslope";
|
||||
arg0
|
||||
{
|
||||
title = "Absolute height?";
|
||||
type = 11;
|
||||
enum = "noyes";
|
||||
}
|
||||
}
|
||||
|
||||
751
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue