MoveViewport takes a float to allow for smoother panning. Added more scripting to shellmap
This commit is contained in:
committed by
Chris Forbes
parent
fc72066ed2
commit
ff7daf8727
2
OpenRA.Game/Graphics/Viewport.cs
Normal file → Executable file
2
OpenRA.Game/Graphics/Viewport.cs
Normal file → Executable 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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user