Basic (zomg hacked) shellmap script [commit hacked by chrisf to remove 3MB AUD]

This commit is contained in:
Paul Chote
2010-04-09 23:20:18 +12:00
committed by Chris Forbes
parent 0e459877c2
commit 803076caf9
8 changed files with 95 additions and 8 deletions

View File

@@ -165,6 +165,11 @@ namespace OpenRA.Graphics
{
return (1 / 24.0f) * (new float2(mi.Location.X, mi.Location.Y) + Location);
}
public void Center(int2 loc)
{
scrollPosition = (Game.CellSize*loc - .5f * new float2(Width, Height)).ToInt2();
}
public void Center(IEnumerable<Actor> actors)
{