fixed some things

This commit is contained in:
Chris Forbes
2009-12-01 22:36:06 +13:00
parent 83a0da9fee
commit ee3699ae0e
7 changed files with 55 additions and 26 deletions

View File

@@ -172,9 +172,11 @@ namespace OpenRa.Game
{
lastTime += timestep;
orderManager.TickImmediate();
if (orderManager.IsReadyForNextFrame)
{
orderManager.Tick(false);
orderManager.Tick();
if (controller.orderGenerator != null)
controller.orderGenerator.Tick();
@@ -191,11 +193,8 @@ namespace OpenRa.Game
player.Tick();
}
else
orderManager.Tick(true);
// if (orderManager.FrameNumber == 0)
//{
// lastTime = Environment.TickCount;
//}
if (orderManager.FrameNumber == 0)
lastTime = Environment.TickCount;
}
PerfHistory.Tick();