shellmap centering

This commit is contained in:
Chris Forbes
2010-04-30 18:51:11 +12:00
parent b9082503fd
commit 4b1f6cf6fc

View File

@@ -33,7 +33,7 @@ namespace OpenRA.Mods.RA
{ {
public void WorldLoaded(World w) public void WorldLoaded(World w)
{ {
Game.MoveViewport(new int2(85,65)); Game.MoveViewport((.5f * (w.Map.TopLeft + w.Map.BottomRight).ToFloat2()).ToInt2());
Sound.PlayMusic("hell226m.aud"); Sound.PlayMusic("hell226m.aud");
} }
} }