This commit is contained in:
Matthias Mailänder
2014-07-04 17:14:48 +02:00
parent 7b5f000ba0
commit 1e2e7bcf42
7 changed files with 16 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ namespace OpenRA.Mods.RA.Air
var hasHost = host != null;
var rp = hasHost ? host.TraitOrDefault<RallyPoint>() : null;
var destination = rp != null ? rp.rallyPoint :
var destination = rp != null ? rp.Location :
(hasHost ? self.World.Map.CellContaining(host.CenterPosition) : self.Location);
return new AttackMove.AttackMoveActivity(self, self.Trait<IMove>().MoveTo(destination, 1));