rough mouse-cursor for infantry-only areas
blue move cursor for d2k rally points
This commit is contained in:
Matthias Mailänder
2012-06-30 11:48:14 +02:00
committed by Chris Forbes
parent 11da96fe22
commit 579ff04f68
4 changed files with 19 additions and 2 deletions

View File

@@ -456,6 +456,8 @@ namespace OpenRA.Mods.RA.Move
{
IsQueued = forceQueued;
cursor = "move";
if (self.World.LocalPlayer.Shroud.IsExplored(location) && self.World.GetTerrainType(location) == "Rough")
cursor = "move-rough";
if (!self.World.Map.IsInMap(location) || (self.World.LocalPlayer.Shroud.IsExplored(location) &&
unitType.MovementCostForCell(self.World, location) == int.MaxValue))
cursor = "move-blocked";