diff options
| author | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-02 15:46:15 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrikboy@gmail.com> | 2024-12-02 15:46:15 +0100 |
| commit | 9508c6e65c7ff25da8848ca7e17e2220acb5ee5c (patch) | |
| tree | e7e85174dcbf13e83f8d2ccb506ad8d237db069d /src/ui/selectors.c | |
| parent | 1b85aeaf9882e29c15b116b683acdab41bb3e94a (diff) | |
exclude boat time from work time
Diffstat (limited to 'src/ui/selectors.c')
| -rw-r--r-- | src/ui/selectors.c | 2 |
1 files changed, 1 insertions, 1 deletions
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.
|
