Progress + prettier ice walls

This commit is contained in:
Regalis
2015-12-12 13:44:05 +02:00
parent 78bccca4af
commit 17e8a2171f
49 changed files with 479 additions and 273 deletions
+5
View File
@@ -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;