mirror of
https://github.com/zyllian/pipefall.git
synced 2025-01-18 03:32:55 -08:00
fix math bug oops
This commit is contained in:
parent
d96fd3b34b
commit
dae8144447
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -28,7 +28,7 @@
|
||||||
if (playAtRandom.checked) {
|
if (playAtRandom.checked) {
|
||||||
timeSincePlay += 1;
|
timeSincePlay += 1;
|
||||||
if (timeSincePlay >= 60) {
|
if (timeSincePlay >= 60) {
|
||||||
const v = random(randomChance.value);
|
const v = random(randomChance.value * 60);
|
||||||
if (v === 0) {
|
if (v === 0) {
|
||||||
play();
|
play();
|
||||||
timeSincePlay = 0;
|
timeSincePlay = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue