new heli movement

This commit is contained in:
Chris Forbes
2009-12-29 20:47:06 +13:00
parent cea2091504
commit 8fc8d0d9c7
5 changed files with 92 additions and 65 deletions

View File

@@ -33,10 +33,6 @@ namespace OpenRa.Game.Traits
var mobile = newUnit.traits.GetOrDefault<Mobile>();
if( mobile != null )
newUnit.QueueActivity( new Activities.Move( rp.rallyPoint, 1 ) );
var heli = newUnit.traits.GetOrDefault<Helicopter>();
if (heli != null)
heli.targetLocation = rp.rallyPoint; // TODO: make Activity.Move work for helis.
}
var bi = self.Info as BuildingInfo;