mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
Visual mode, "Raise Floor/Ceiling to adjacent sector", "Lower Floor/Ceiling to adjacent sector": things with "absolutez" flag should be handled differently.
This commit is contained in:
parent
666b3486e9
commit
d641c1160c
1 changed files with 12 additions and 2 deletions
|
@ -2166,7 +2166,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
if(vt.Thing.Sector == null) continue;
|
||||
|
||||
if (vt.Info.Hangs)
|
||||
if(vt.Info.AbsoluteZ)
|
||||
{
|
||||
SectorData sd = GetSectorData(vt.Thing.Sector);
|
||||
vt.OnMove(new Vector3D(vt.Thing.Position, sd.Ceiling.plane.GetZ(vt.Thing.Position) - vt.Info.Height));
|
||||
}
|
||||
else if(vt.Info.Hangs)
|
||||
{
|
||||
vt.OnMove(new Vector3D(vt.Thing.Position, 0));
|
||||
}
|
||||
|
@ -2385,7 +2390,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
{
|
||||
if(vt.Thing.Sector == null) continue;
|
||||
|
||||
if (vt.Info.Hangs)
|
||||
if(vt.Info.AbsoluteZ)
|
||||
{
|
||||
SectorData sd = GetSectorData(vt.Thing.Sector);
|
||||
vt.OnMove(new Vector3D(vt.Thing.Position, sd.Floor.plane.GetZ(vt.Thing.Position)));
|
||||
}
|
||||
else if(vt.Info.Hangs)
|
||||
{
|
||||
vt.OnMove(new Vector3D(vt.Thing.Position, vt.Thing.Sector.CeilHeight - vt.Thing.Sector.FloorHeight - vt.Info.Height));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue