mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-04-22 17:44:06 +00:00
Display absolute-height slope vertices properly in Visual Mode.
This commit is contained in:
parent
a88b146129
commit
76f2816e82
2 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue