removed needless cursor indirection
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user