From 94e4d041d45bb8186b77bd6eb465373a5bac3902 Mon Sep 17 00:00:00 2001 From: Andrei Alexeyev Date: Thu, 11 Apr 2024 15:13:30 +0200 Subject: [PATCH] lasers: fix time values written by quantize_laser() --- src/lasers/laser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lasers/laser.c b/src/lasers/laser.c index 9837c334b2..4931f88a08 100644 --- a/src/lasers/laser.c +++ b/src/lasers/laser.c @@ -294,7 +294,7 @@ static int quantize_laser(Laser *l) { LaserSegment *seg = dynarray_append(&lintern.segments, { .pos = { a, b }, .width = { w0, w }, - .time = { -t0, -t }, + .time = { sp.time_shift - t0, sp.time_shift - t }, }); if(w < w0) {