Skip to content

Commit 6b11026

Browse files
committed
fix: save golds whenever they change
1 parent 35a203b commit 6b11026

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

timer.c

+1
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ void timer_split(struct state *s) {
9191
if (s->split_time < sp->split.times.best - GOLD_EPSILON) {
9292
sp->split.times.best = s->split_time;
9393
sp->split.times.golded_this_run = true;
94+
save_times(s->splits, s->nsplits, "golds", offsetof(struct times, best));
9495
}
9596

9697
if (sp == get_final_split(s)) {

0 commit comments

Comments
 (0)