From 9508c6e65c7ff25da8848ca7e17e2220acb5ee5c Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Mon, 2 Dec 2024 15:46:15 +0100 Subject: exclude boat time from work time --- src/ui/selectors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/selectors.c') diff --git a/src/ui/selectors.c b/src/ui/selectors.c index dc5a6bc..7d55b98 100644 --- a/src/ui/selectors.c +++ b/src/ui/selectors.c @@ -109,7 +109,7 @@ employee* employee_selector_render(platform_window* window, float scale, bool en tb_y += fnt->px_h + (12*scale); } - float hours_for_this_job = (offer->offer.duration_sec_min * get_shiptime_factor(result)) / 3600.0f; + float hours_for_this_job = (offer->offer.duration_sec_min_excluding_boat * get_shiptime_factor(result)) / 3600.0f; float total_hours = get_worked_hours_per_week_for_employee(_active_world, result, (_active_schedule_state == RESCHEDULING_JOB ? _active_selected_scheduled_job : 0)); // If being scheduled, also add timeslots that are currently being scheduled. -- cgit v1.2.3-70-g09d2