Progress + prettier ice walls
This commit is contained in:
@@ -247,6 +247,11 @@ namespace Barotrauma
|
||||
this.center = center;
|
||||
}
|
||||
public int Compare(Vector2 a, Vector2 b)
|
||||
{
|
||||
return Compare(a, b, center);
|
||||
}
|
||||
|
||||
public static int Compare(Vector2 a, Vector2 b, Vector2 center)
|
||||
{
|
||||
if (a.X - center.X >= 0 && b.X - center.X < 0) return -1;
|
||||
if (a.X - center.X < 0 && b.X - center.X >= 0) return 1;
|
||||
|
||||
Reference in New Issue
Block a user