Allow beacons to be placed and drawn above the shroud.
This commit is contained in:
@@ -18,13 +18,8 @@ namespace OpenRA.Mods.Common.Orders
|
||||
{
|
||||
public IEnumerable<Order> Order(World world, CPos cell, int2 worldPixel, MouseInput mi)
|
||||
{
|
||||
if (mi.Button != MouseButton.Left)
|
||||
world.CancelInputMode();
|
||||
else if (!world.ShroudObscures(cell))
|
||||
{
|
||||
world.CancelInputMode();
|
||||
yield return new Order("PlaceBeacon", world.LocalPlayer.PlayerActor, false) { TargetLocation = cell, SuppressVisualFeedback = true };
|
||||
}
|
||||
world.CancelInputMode();
|
||||
yield return new Order("PlaceBeacon", world.LocalPlayer.PlayerActor, false) { TargetLocation = cell, SuppressVisualFeedback = true };
|
||||
}
|
||||
|
||||
public virtual void Tick(World world) { }
|
||||
@@ -32,7 +27,7 @@ namespace OpenRA.Mods.Common.Orders
|
||||
public IEnumerable<IRenderable> RenderAfterWorld(WorldRenderer wr, World world) { yield break; }
|
||||
public string GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi)
|
||||
{
|
||||
return !world.ShroudObscures(cell) ? "ability" : "generic-blocked";
|
||||
return "ability";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user