Display (attack|assault)move-blocked cursor outside map bounds.

This makes them consistent with the regular move order.
This commit is contained in:
Paul Chote
2017-09-24 19:36:51 +00:00
committed by reaperrr
parent e93183f0eb
commit 64afe4cfde
9 changed files with 50 additions and 17 deletions

View File

@@ -156,10 +156,8 @@ namespace OpenRA.Mods.Common.Traits
public override string GetCursor(World world, CPos cell, int2 worldPixel, MouseInput mi)
{
if (world.Map.Contains(cell))
return mi.Modifiers.HasModifier(Modifiers.Ctrl) ? "assaultmove" : "attackmove";
return "generic-blocked";
var prefix = mi.Modifiers.HasModifier(Modifiers.Ctrl) ? "assaultmove" : "attackmove";
return world.Map.Contains(cell) ? prefix : prefix + "-blocked";
}
public override bool InputOverridesSelection(World world, int2 xy, MouseInput mi)