fixed PlaceBuilding and Chronosphere ordergenerators

This commit is contained in:
Bob
2010-10-03 07:42:41 +13:00
committed by Paul Chote
parent aebef4f1c8
commit 3209da4a4a
3 changed files with 29 additions and 6 deletions

View File

@@ -75,8 +75,11 @@ namespace OpenRA.Mods.RA
&& a.HasTrait<IronCurtainable>()
&& a.HasTrait<Selectable>()).FirstOrDefault();
if (underCursor != null)
yield return new Order("IronCurtain", underCursor.Owner.PlayerActor, underCursor);
if( underCursor != null )
{
world.CancelInputMode();
yield return new Order( "IronCurtain", underCursor.Owner.PlayerActor, underCursor );
}
}
yield break;