Misc fixes

This commit is contained in:
hondacrx
2021-12-07 20:57:02 -05:00
parent 2a086b6d3c
commit eef0e8e875
6 changed files with 118 additions and 35 deletions
+4
View File
@@ -27,6 +27,10 @@ namespace Game
sum += diff * diff;
weightsum += diff;
}
if (weightsum == 0)
return 0;
return sum / weightsum;
}