From 5f685eaabf4c57606c3b86791a33d5cdce46ec67 Mon Sep 17 00:00:00 2001 From: San Jacobs Date: Sun, 15 Oct 2023 16:50:06 +0200 Subject: FIX THIS --- src/time.odin | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/time.odin b/src/time.odin index 712136d..7b8127d 100644 --- a/src/time.odin +++ b/src/time.odin @@ -94,6 +94,9 @@ new_workday :: proc(previous_wrap : Moment, time_max(time_clamp(sub(planned_wrap, {0, 1, 0}), wrap, add(wrap, {0, 2, 0})), add(call, {0, 4, 0})), 1, ""} // ^ Minimum 4 hour day ^ + + // BUG: I think this is causing a bug where if the day ends at 6 and gets extended, + // it doesn't split the day at 6 and set the work-time before that to be extra expensive sp_length :: 11 splitpoints:= [sp_length]Moment{ // --$-- Points where the price may change --$-- // -- cgit v1.2.1