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

@@ -113,6 +113,8 @@ namespace OpenRA
{
lastTime += Settings.Game.Timestep;
Widget.DoTick(world);
if( world.GameHasStarted && world.LocalPlayer != null )
++Viewport.TicksSinceLastMove;
Sound.Tick();
Sync.CheckSyncUnchanged( world, () => { orderManager.TickImmediate( world ); } );