not java.
This commit is contained in:
@@ -168,7 +168,7 @@ namespace OpenRA.Mods.RA
|
|||||||
IEnumerable<Order> OrderInner(World world, int2 xy, MouseInput mi)
|
IEnumerable<Order> OrderInner(World world, int2 xy, MouseInput mi)
|
||||||
{
|
{
|
||||||
// Cannot chronoshift into unexplored location
|
// Cannot chronoshift into unexplored location
|
||||||
if (isValidTarget(xy))
|
if (IsValidTarget(xy))
|
||||||
yield return new Order(order, manager.self, false)
|
yield return new Order(order, manager.self, false)
|
||||||
{
|
{
|
||||||
TargetLocation = xy,
|
TargetLocation = xy,
|
||||||
@@ -221,7 +221,7 @@ namespace OpenRA.Mods.RA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isValidTarget(int2 xy)
|
bool IsValidTarget(int2 xy)
|
||||||
{
|
{
|
||||||
var canTeleport = false;
|
var canTeleport = false;
|
||||||
foreach (var unit in power.UnitsInRange(sourceLocation))
|
foreach (var unit in power.UnitsInRange(sourceLocation))
|
||||||
@@ -238,7 +238,7 @@ namespace OpenRA.Mods.RA
|
|||||||
|
|
||||||
public string GetCursor(World world, int2 xy, MouseInput mi)
|
public string GetCursor(World world, int2 xy, MouseInput mi)
|
||||||
{
|
{
|
||||||
return isValidTarget(xy) ? "chrono-target" : "move-blocked";
|
return IsValidTarget(xy) ? "chrono-target" : "move-blocked";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user