Slope vertices are always placed relative to the "normal" floor, not the sloped floor.

This commit is contained in:
MascaraSnake 2016-01-03 01:12:07 +01:00
parent 3e7202000e
commit 5e5da324d5

View file

@ -402,6 +402,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
pos.z = sd.Floor.sector.FloorHeight + Thing.Position.z;
}
}
else if (General.Map.SRB2 && Thing.IsSlopeVertex)
{
if (Thing.Sector != null) //mxd
{
// This is a special thing that needs special positioning
SectorData sd = mode.GetSectorData(Thing.Sector);
pos.z = sd.Floor.sector.FloorHeight + Thing.Position.z;
}
}
else if(info.AbsoluteZ)
{
// Absolute Z position