removed needless cursor indirection

This commit is contained in:
Chris Forbes
2010-02-06 16:18:48 +13:00
parent 4724734454
commit 3b1dc39d6d
16 changed files with 47 additions and 75 deletions

View File

@@ -34,11 +34,11 @@ namespace OpenRa.Orders
public void Tick( World world ) { }
public void Render( World world ) { }
public Cursor GetCursor(World world, int2 xy, MouseInput mi)
public string GetCursor(World world, int2 xy, MouseInput mi)
{
mi.Button = MouseButton.Left;
return OrderInner(world, xy, mi).Any()
? Cursor.PowerDown : Cursor.PowerDownBlocked;
? "powerdown" : "powerdown-blocked";
}
}
}