move an access of Viewport into Game

This commit is contained in:
Bob
2010-10-11 20:00:44 +13:00
parent cb1deacbb2
commit e0afc08e5f
2 changed files with 2 additions and 4 deletions

View File

@@ -338,10 +338,6 @@ namespace OpenRA.Widgets
public static void DoTick(World world)
{
RootWidget.Tick(world);
if (!world.GameHasStarted) return;
if (world.LocalPlayer == null) return;
++Viewport.TicksSinceLastMove;
}
public static void DoDraw()