v1.5.7 - cultures selection loop fix

This commit is contained in:
Azgaar 2021-02-26 22:30:53 +03:00
parent 7a94ab632f
commit 31e0ed7c94
2 changed files with 18 additions and 10 deletions

View file

@ -224,6 +224,8 @@ function rand(min, max) {
// probability shorthand
function P(probability) {
if (probability >= 1) return true;
if (probability <= 0) return false;
return Math.random() < probability;
}