Display absolute-height slope vertices properly in Visual Mode.

This commit is contained in:
sphere 2021-03-24 18:20:31 +01:00
parent a88b146129
commit 76f2816e82
2 changed files with 8 additions and 2 deletions

View file

@ -389,7 +389,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
{
// This is a special thing that needs special positioning
SectorData sd = mode.GetSectorData(Thing.Sector);
pos.z = sd.Floor.sector.FloorHeight + Thing.Position.z - Thing.Height/2;
if (Thing.Parameter > 0)
pos.z = Thing.GetFlagsValue();
else
pos.z = sd.Floor.sector.FloorHeight + Thing.Position.z - Thing.Height / 2;
}
}
else if (info.IgnoreZ)

View file

@ -54,7 +54,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
t.DetermineSector(blockmap);
else
t.DetermineSector(bsp);
position.z += t.Sector.FloorHeight;
if (t.Parameter > 0)
position.z = t.GetFlagsValue();
else
position.z += t.Sector.FloorHeight;
verts[index] = position;
index++;
if (index > 2) break; //Only the first three vertices are used