Skip to content

Commit 927bde7

Browse files
authored
Merge pull request #4 from IPdotSetAF/3-multi-drops-fall-together
3-multi-drops-fall-together
2 parents 45869b9 + 9c7ed06 commit 927bde7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,12 @@ window.onload = function () {
579579
drops[i][j][3] = character, drops[i][j][4] = lightness;
580580
neoMatrix.fillText(character, i * options.ui_font_size, drops[i][j][0] * options.ui_font_size);
581581

582-
if (drops[i][j][0] > rows && Math.random() > probability)
582+
if (drops[i][j][0] > rows && Math.random() > probability) {
583583
drops[i][j] = [0, 0, 0, "", 0];
584+
for (; j < options.ui_rain_dropCount; j++)
585+
drops[i][j][0]++;
586+
break;
587+
}
584588

585589
drops[i][j][0]++;
586590
}
@@ -738,7 +742,7 @@ window.onload = function () {
738742
if (params.get(key) === value)
739743
params.delete(key);
740744
});
741-
745+
742746
return window.location.origin + window.location.pathname + "?" + params.toString();
743747
}
744748

0 commit comments

Comments
 (0)