fixed Defense unittype

This commit is contained in:
Chris Forbes
2009-11-17 20:43:59 +13:00
parent 2c05e2d6e0
commit 746ab904e6
4 changed files with 10 additions and 10 deletions

View File

@@ -39,7 +39,7 @@ namespace OpenRa.Game
public void Tick()
{
var producing = Owner.Producing( "Building" );
var producing = Owner.Producing( Rules.UnitCategory[ Building.Name ] );
if( producing == null || producing.Item != Building.Name || producing.RemainingTime != 0 )
Game.world.AddFrameEndTask( _ => { Game.controller.orderGenerator = null; } );
}