deploy mcv now requires clear space

This commit is contained in:
Chris Forbes
2009-11-01 21:29:05 +13:00
parent 98e64fc446
commit f4a5c9069b
7 changed files with 42 additions and 17 deletions

View File

@@ -98,9 +98,10 @@ namespace OpenRa.Game
isBlocked ? Cursor.MoveBlocked : Cursor.Move);
}
public static Order DeployMcv(Actor subject)
public static Order DeployMcv(Actor subject, bool isBlocked)
{
return new Order(subject.Owner, "DeployMcv", subject, null, int2.Zero, null, Cursor.Deploy);
return new Order(subject.Owner, "DeployMcv", subject, null, int2.Zero, isBlocked ? "nop" : null,
isBlocked ? Cursor.DeployBlocked : Cursor.Deploy);
}
public static Order PlaceBuilding(Player subject, int2 target, string buildingName)