aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSan Jacobs2023-10-15 16:50:06 +0200
committerSan Jacobs2023-10-15 16:50:06 +0200
commit5f685eaabf4c57606c3b86791a33d5cdce46ec67 (patch)
treeb1ab9be29e77848268adc177a943400cec382505
parentce29f3a14900b7ec3e4916af7956dfe5baf3aaf0 (diff)
downloadsatscalc-5f685eaabf4c57606c3b86791a33d5cdce46ec67.tar.gz
satscalc-5f685eaabf4c57606c3b86791a33d5cdce46ec67.tar.bz2
satscalc-5f685eaabf4c57606c3b86791a33d5cdce46ec67.zip
FIX THIS
-rw-r--r--src/time.odin3
1 files changed, 3 insertions, 0 deletions
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 --$-- //