New types for cell and pixel coordinate position/vectors.
This commit is contained in:
@@ -149,7 +149,7 @@ namespace OpenRA.Mods.RA
|
||||
if( target.IsActor )
|
||||
return new Order("Attack", self, queued) { TargetActor = target.Actor };
|
||||
else
|
||||
return new Order( "Attack", self, queued ) { TargetLocation = Util.CellContaining( target.CenterLocation ) };
|
||||
return new Order( "Attack", self, queued ) { TargetLocation = target.CenterLocation.ToCPos() };
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -217,7 +217,7 @@ namespace OpenRA.Mods.RA
|
||||
return self.Owner.Stances[ target.Owner ] == targetableRelationship;
|
||||
}
|
||||
|
||||
public bool CanTargetLocation(Actor self, int2 location, List<Actor> actorsAtLocation, bool forceAttack, bool forceQueued, ref string cursor)
|
||||
public bool CanTargetLocation(Actor self, CPos location, List<Actor> actorsAtLocation, bool forceAttack, bool forceQueued, ref string cursor)
|
||||
{
|
||||
if (!self.World.Map.IsInMap(location))
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user