Fix issues

This commit is contained in:
Ted John 2017-01-24 17:32:17 +00:00
parent c40df001ca
commit 93762bf15f
2 changed files with 4 additions and 3 deletions

View File

@ -1437,7 +1437,7 @@ uint32 staff_get_available_entertainer_costumes()
}
// For some reason the flags are +4 from the actual costume IDs
entertainerCostumes <<= 4;
entertainerCostumes >>= 4;
return entertainerCostumes;
}

View File

@ -227,7 +227,7 @@ static void window_staff_list_mouseup(rct_window *w, sint32 widgetIndex)
uint8 costume = window_staff_list_get_random_entertainer_costume();
staffType += costume;
}
hire_new_staff_member(_windowStaffListSelectedTab);
hire_new_staff_member(staffType);
break;
}
case WIDX_STAFF_LIST_SHOW_PATROL_AREA_BUTTON:
@ -712,7 +712,8 @@ static uint8 window_staff_list_get_random_entertainer_costume()
sint32 numCostumes = staff_get_available_entertainer_costume_list(costumeList);
if (numCostumes > 0)
{
result = util_rand() % numCostumes;
sint32 index = util_rand() % numCostumes;
result = costumeList[index];
}
return result;
}