Fix randomize loading

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-06 20:22:30 -07:00
parent dba5c40f6a
commit 556f3e256f

View File

@ -394,7 +394,7 @@
/* Randomly index the visible array, keeping the center /* Randomly index the visible array, keeping the center
* in the middle. This makes the loading look more organic. */ * in the middle. This makes the loading look more organic. */
for (var i = 0, j = visible.length - 1; i != j; i++, j--) { for (var i = 0, j = visible.length - 1; i < j; i++, j--) {
if (Math.random() > 0.5) { if (Math.random() > 0.5) {
var tmp = visible[i]; var tmp = visible[i];
visible[i] = visible[j]; visible[i] = visible[j];