Skip to content

Commit f9c3aed

Browse files
authored
Merge branch 'master' into small-static-text
2 parents 440dffc + edcea8f commit f9c3aed

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ window.onload = function () {
620620
}
621621
}
622622

623+
var newDrop = true;
623624
for (var j = 0; j < options.ui_rain_dropCount; j++) {
624625
var character = calculateCharacter(drops[i][j], i);
625626
var lightness = audio_lightness;
@@ -643,11 +644,9 @@ window.onload = function () {
643644
drops[i][j][3] = character, drops[i][j][4] = lightness;
644645
neoMatrix.fillText(character, i * options.ui_font_size, drops[i][j][0] * options.ui_font_size);
645646

646-
if (drops[i][j][0] > rows && Math.random() > probability) {
647+
if (drops[i][j][0] > rows && Math.random() > probability && newDrop) {
647648
drops[i][j] = [0, 0, 0, "", 0];
648-
for (; j < options.ui_rain_dropCount; j++)
649-
drops[i][j][0]++;
650-
break;
649+
newDrop = false;
651650
}
652651

653652
drops[i][j][0]++;

0 commit comments

Comments
 (0)