Fix the hyperspeed shellmap by setting the initial tick time *after* we're done loading.

This commit is contained in:
Paul Chote
2011-01-20 09:25:11 +13:00
parent ea9003d6fc
commit 42a5b0a993

View File

@@ -253,12 +253,12 @@ namespace OpenRA
JoinLocal(); JoinLocal();
viewport = new Viewport(new int2(Renderer.Resolution), Rectangle.Empty, Renderer); viewport = new Viewport(new int2(Renderer.Resolution), Rectangle.Empty, Renderer);
modData.WidgetLoader.LoadWidget( new Dictionary<string,object>(), Widget.RootWidget, "MAINMENU_INIT" ); modData.WidgetLoader.LoadWidget( new Dictionary<string,object>(), Widget.RootWidget, "MAINMENU_INIT" );
Game.orderManager.LastTickTime = Environment.TickCount;
} }
public static void LoadShellMap() public static void LoadShellMap()
{ {
StartGame(ChooseShellmap()); StartGame(ChooseShellmap());
Game.orderManager.LastTickTime = Environment.TickCount;
} }
static string ChooseShellmap() static string ChooseShellmap()