mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-12 07:05:29 +00:00
Slope vertices are always placed relative to the "normal" floor, not the sloped floor.
This commit is contained in:
parent
3e7202000e
commit
5e5da324d5
1 changed files with 10 additions and 0 deletions
|
@ -402,6 +402,16 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
pos.z = sd.Floor.sector.FloorHeight + Thing.Position.z;
|
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)
|
else if(info.AbsoluteZ)
|
||||||
{
|
{
|
||||||
// Absolute Z position
|
// Absolute Z position
|
||||||
|
|
Loading…
Reference in a new issue