mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
fixed some bugs I made while making little optimizations
This commit is contained in:
parent
afb1c80c4a
commit
5056eddc65
3 changed files with 4 additions and 4 deletions
|
@ -88,7 +88,7 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
else if(ax > ay) return -1;
|
||||
else return 0;
|
||||
*/
|
||||
return Math.Sign(ax - ay);
|
||||
return Math.Sign(ay - ax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -120,9 +120,9 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
|
||||
// Add next vertex
|
||||
if(forward)
|
||||
p.AddLast(new EarClipVertex(base[i].Start.Position, base[0].Front));
|
||||
p.AddLast(new EarClipVertex(base[i].Start.Position, base[i].Front));
|
||||
else
|
||||
p.AddLast(new EarClipVertex(base[i].End.Position, base[0].Back));
|
||||
p.AddLast(new EarClipVertex(base[i].End.Position, base[i].Back));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -90,7 +90,7 @@ namespace CodeImp.DoomBuilder.Geometry
|
|||
else if(ax > ay) return -1;
|
||||
else return 0;
|
||||
*/
|
||||
return Math.Sign(ax - ay);
|
||||
return Math.Sign(ay - ax);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue