Moved time-stepping out into Game. player ticks (including production) now run at the correct rate.

This commit is contained in:
Bob
2009-11-01 12:10:17 +13:00
parent dbef9e4a45
commit c1a49f715d
3 changed files with 64 additions and 62 deletions

View File

@@ -71,7 +71,7 @@ namespace OpenRa.Game
ShowCursor(false);
Game.world.ResetTimer();
Game.ResetTimer();
}
internal void Run()
@@ -79,9 +79,6 @@ namespace OpenRa.Game
while (Created && Visible)
{
Game.Tick();
Game.viewport.cursor = Game.controller.ChooseCursor();
if (Game.controller.orderGenerator != null)
Game.controller.orderGenerator.Tick();
Application.DoEvents();
}
}