mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-22 20:02:48 +00:00
@ A nicer version of this file (the logic is the same, the code is cleaner)
This commit is contained in:
parent
1ffb85438c
commit
c978ea3477
1 changed files with 1 additions and 8 deletions
|
@ -27,14 +27,7 @@ namespace CodeImp.DoomBuilder.GZDoomEditing
|
|||
// Comparer
|
||||
public int Compare(SectorLevel x, SectorLevel y)
|
||||
{
|
||||
float delta = x.plane.GetZ(center) - y.plane.GetZ(center);
|
||||
|
||||
if(delta > 0.0f)
|
||||
return 1;
|
||||
else if(delta < 0.0f)
|
||||
return -1;
|
||||
else
|
||||
return 0;
|
||||
return Math.Sign(x.plane.GetZ(center) - y.plane.GetZ(center));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue