Merge pull request #5577 from pchote/production-fix

Don’t queue rallypoint move if MoveIntoWorld:false.
This commit is contained in:
Matthias Mailänder
2014-06-08 10:38:12 +02:00

View File

@@ -78,10 +78,12 @@ namespace OpenRA.Mods.RA
if (move != null)
{
if (exitinfo.MoveIntoWorld)
{
newUnit.QueueActivity(move.MoveIntoWorld(newUnit, exit));
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
newUnit, move.MoveWithinRange(target, nearEnough)));
newUnit.QueueActivity(new AttackMove.AttackMoveActivity(
newUnit, move.MoveWithinRange(target, nearEnough)));
}
}
newUnit.SetTargetLine(target, Color.Green, false);