fixed pdiff

This commit is contained in:
BooshPC 2025-02-05 21:35:29 -05:00
parent 6605c303c8
commit d3d6d5c7d9

@ -39,7 +39,7 @@ function calcPDiff(pScore, sF, sU)
{
const fDiff = pScore.sF - sF;
const uDiff = pScore.sU - sU;
return Math.sqrt(fDiff^2 + uDiff^2);
return Math.sqrt(Math.pow(fDiff,2) + Math.pow(uDiff,2));
}else{
return undefined;
}