Squash compiler warnings

This commit is contained in:
Paul Chote
2011-04-07 21:26:57 +12:00
parent b0425aff3b
commit aba14eec23
11 changed files with 17 additions and 27 deletions

View File

@@ -24,11 +24,9 @@ namespace OpenRA.Mods.RA
{
Dictionary<string, Actor> Actors;
static int2 ViewportOrigin;
Map Map;
public void WorldLoaded(World w)
{
Map = w.Map;
var b = w.Map.Bounds;
ViewportOrigin = new int2(b.Left + b.Width/2, b.Top + b.Height/2);
Game.MoveViewport(ViewportOrigin);