Draw viewport rect on radar

This commit is contained in:
Paul Chote
2010-07-23 00:03:04 +12:00
parent a42ef6b3ea
commit 5c7e278b93
2 changed files with 21 additions and 9 deletions

View File

@@ -107,7 +107,7 @@ namespace OpenRA.Graphics
public float2 ViewToWorld(MouseInput mi)
{
return (1 / 24.0f) * (new float2(mi.Location.X, mi.Location.Y) + Location);
return (1f / Game.CellSize) * (new float2(mi.Location.X, mi.Location.Y) + Location);
}
public void Center(int2 loc)