MoveViewport takes a float to allow for smoother panning. Added more scripting to shellmap

This commit is contained in:
Caleb Anderson
2010-10-21 00:17:32 -05:00
committed by Chris Forbes
parent fc72066ed2
commit ff7daf8727
6 changed files with 1286 additions and 1256 deletions

2
OpenRA.Game/Graphics/Viewport.cs Normal file → Executable file
View File

@@ -123,7 +123,7 @@ namespace OpenRA.Graphics
return ViewToWorld(mi.Location);
}
public void Center(int2 loc)
public void Center(float2 loc)
{
scrollPosition = this.NormalizeScrollPosition(Game.CellSize*loc - .5f * new float2(Width, Height));
}