Fix typo in vertex slope handling

This commit is contained in:
spherallic 2022-12-30 20:55:41 +01:00
parent 6b21d45fac
commit a772edc820

View file

@ -57,7 +57,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
if (t.Parameter > 0) if (t.Parameter > 0)
position.z = t.GetFlagsValue(); position.z = t.GetFlagsValue();
else else
position.z = (t.Sector != null) ? t.Sector.FloorHeight : 0; position.z += (t.Sector != null) ? t.Sector.FloorHeight : 0;
verts[index] = position; verts[index] = position;
index++; index++;
if (index > 2) break; //Only the first three vertices are used if (index > 2) break; //Only the first three vertices are used