Buildings with special rendering now skip their make animation. Removed IsMapActor; make-skipping is now controlled by a global in Game.

This commit is contained in:
Bob
2009-11-02 00:59:53 +13:00
parent 7e1417254c
commit 1d7798d40c
9 changed files with 36 additions and 25 deletions

View File

@@ -27,9 +27,12 @@ namespace OpenRa.Game
savingReplay = new BinaryWriter( new FileStream( replayFilename, FileMode.Create ) );
}
public void Tick()
public bool Tick()
{
var localOrders = Game.controller.GetRecentOrders();
if( localOrders == null )
return false;
foreach( var p in players )
p.Tick( localOrders );
@@ -48,6 +51,8 @@ namespace OpenRa.Game
// sanity check on the framenumber. This is 2^31 frames maximum, or multiple *years* at 40ms/frame.
if( ( frameNumber & 0x80000000 ) != 0 )
throw new InvalidOperationException( "(OrderManager) Frame number too large" );
return true;
}
}