mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Simplify code
This commit is contained in:
@@ -207,16 +207,12 @@ static void window_staff_list_mouseup(rct_window* w, rct_widgetindex widgetIndex
|
||||
case WIDX_STAFF_LIST_HIRE_BUTTON:
|
||||
{
|
||||
STAFF_TYPE staffType = static_cast<STAFF_TYPE>(_windowStaffListSelectedTab);
|
||||
ENTERTAINER_COSTUME costume = ENTERTAINER_COSTUME_COUNT;
|
||||
if (staffType == STAFF_TYPE_ENTERTAINER)
|
||||
{
|
||||
ENTERTAINER_COSTUME costume = static_cast<ENTERTAINER_COSTUME>(
|
||||
window_staff_list_get_random_entertainer_costume());
|
||||
staff_hire_new_member(staffType, costume);
|
||||
}
|
||||
else
|
||||
{
|
||||
staff_hire_new_member(staffType, ENTERTAINER_COSTUME::ENTERTAINER_COSTUME_COUNT);
|
||||
costume = static_cast<ENTERTAINER_COSTUME>(window_staff_list_get_random_entertainer_costume());
|
||||
}
|
||||
staff_hire_new_member(staffType, costume);
|
||||
break;
|
||||
}
|
||||
case WIDX_STAFF_LIST_SHOW_PATROL_AREA_BUTTON:
|
||||
|
||||
Reference in New Issue
Block a user