fixes #72
This commit is contained in:
@@ -92,9 +92,10 @@ namespace OpenRa.Game
|
|||||||
return new Order(subject.Owner, "Attack", subject, target, int2.Zero, null, Cursor.Attack);
|
return new Order(subject.Owner, "Attack", subject, target, int2.Zero, null, Cursor.Attack);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Order Move(Actor subject, int2 target)
|
public static Order Move(Actor subject, int2 target, bool isBlocked)
|
||||||
{
|
{
|
||||||
return new Order(subject.Owner, "Move", subject, null, target, null, Cursor.Move);
|
return new Order(subject.Owner, "Move", subject, null, target, null,
|
||||||
|
isBlocked ? Cursor.MoveBlocked : Cursor.Move);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Order DeployMcv(Actor subject)
|
public static Order DeployMcv(Actor subject)
|
||||||
|
|||||||
@@ -53,12 +53,12 @@ namespace OpenRa.Game.Traits
|
|||||||
if( lmb ) return null;
|
if( lmb ) return null;
|
||||||
|
|
||||||
if( underCursor != null )
|
if( underCursor != null )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
if (xy == toCell) return null;
|
||||||
|
|
||||||
if( xy != toCell )
|
return OpenRa.Game.Order.Move( self, xy,
|
||||||
return OpenRa.Game.Order.Move( self, xy );
|
!Game.IsCellBuildable(xy, GetMovementType()) );
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Cancel(Actor self)
|
public void Cancel(Actor self)
|
||||||
|
|||||||
Reference in New Issue
Block a user