Fixed bug #16.
This commit is contained in:
@@ -28,16 +28,18 @@ namespace OpenRa.Game
|
||||
|
||||
class DeployMcvOrder : Order
|
||||
{
|
||||
Actor Unit;
|
||||
Actor Unit;
|
||||
int2 Location;
|
||||
|
||||
public DeployMcvOrder( Actor unit )
|
||||
public DeployMcvOrder( Actor unit, int2 location )
|
||||
{
|
||||
Unit = unit;
|
||||
Unit = unit;
|
||||
Location = location;
|
||||
}
|
||||
|
||||
public override void Apply( Game game )
|
||||
{
|
||||
Unit.traits.Get<Traits.McvDeploy>().Deploying = true;
|
||||
Unit.traits.Get<Traits.McvDeploy>().DeployLocation = Location;
|
||||
var mobile = Unit.traits.Get<Traits.Mobile>();
|
||||
mobile.destination = mobile.toCell;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user