fix floating point issue in bezier

This commit is contained in:
2026-09-03 23:36:47 +02:00
parent f1205e3851
commit a04518fb0d
2 changed files with 18 additions and 16 deletions
+1 -1
View File
@@ -84,7 +84,7 @@ function update(ctx: CanvasRenderingContext2D, time: number) {
if (lastTime == null) lastTime = time;
const dt = (time - lastTime) / 1000; // s
lastTime = time;
apple = apple as Vec2d;
if (apple == null) return;
if (!paused) {
// update head position