From a0dcfdc2c95129fd215bc6b9202494d42b09e398 Mon Sep 17 00:00:00 2001 From: biglyderv Date: Fri, 7 Mar 2025 06:31:06 -0500 Subject: [PATCH] fix weird js nonsense with arrray keys --- docs/js/idle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/js/idle.js b/docs/js/idle.js index f146971..defa007 100644 --- a/docs/js/idle.js +++ b/docs/js/idle.js @@ -18,7 +18,7 @@ document.querySelector('canvas').addEventListener('click', (e) => { let p1 = MDN.perspectiveMatrix(Math.PI * 100 / 180, ratio, 0.01, 1000) for (let cubieI in cubePos) { - let bonus = 1 + counts.doNothing / (cubieI + 2); + let bonus = 1 + counts.doNothing / (cubieI * 1 + 2); let cubie = cubePos[cubieI]; let p2 = MDN.multiplyPoint(p1, [cubie[0], cubie[1], cubie[2], 0]);