laser: prevent potential replay desync

This commit is contained in:
Andrei Alexeyev 2023-06-20 05:26:37 +02:00
parent 40589013dc
commit d84771dc03
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -205,7 +205,8 @@ static int quantize_laser(Laser *l) {
// Points of the current line segment
// Begin constructing at t0
cmplxf a, b;
// WARNING: these must be double precision to prevent cross-platform replay desync
cmplx a, b;
a = l->prule(l, t0);
// Width value of the last included sample