remove hardcoded magic number

This commit is contained in:
Chris Forbes
2010-06-23 18:19:10 +12:00
committed by Paul Chote
parent 0cf39991db
commit 308a7b0cf6

View File

@@ -173,6 +173,6 @@ namespace OpenRA.Traits
public static Color ArrayToColor(int[] x) { return Color.FromArgb(x[0], x[1], x[2]); } public static Color ArrayToColor(int[] x) { return Color.FromArgb(x[0], x[1], x[2]); }
public static int2 CellContaining(float2 pos) { return (1 / 24f * pos).ToInt2(); } public static int2 CellContaining(float2 pos) { return (1f / Game.CellSize * pos).ToInt2(); }
} }
} }