fixed some bugs I made while making little optimizations

This commit is contained in:
codeimp 2008-10-08 20:09:44 +00:00
parent afb1c80c4a
commit 5056eddc65
3 changed files with 4 additions and 4 deletions

View file

@ -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);
}
}
}

View file

@ -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));
}
}

View file

@ -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);
}
}
}