Remove more cruft from Game.controller

This commit is contained in:
Paul Chote
2010-07-25 18:41:19 +12:00
parent eac49ca641
commit e677be7908
7 changed files with 13 additions and 15 deletions

View File

@@ -78,9 +78,13 @@ namespace OpenRA.Graphics
cursorFrame += 0.5f;
}
public float2 ViewToWorld(int2 loc)
{
return (1f / Game.CellSize) * (loc.ToFloat2() + Location);
}
public float2 ViewToWorld(MouseInput mi)
{
return (1f / Game.CellSize) * (new float2(mi.Location.X, mi.Location.Y) + Location);
return ViewToWorld(mi.Location);
}
public void Center(int2 loc)