removed needless cursor indirection
This commit is contained in:
@@ -48,11 +48,11 @@ namespace OpenRa.Orders
|
||||
|
||||
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.Repair : Cursor.RepairBlocked;
|
||||
? "repair" : "repair-blocked";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user