From: Joe Wreschnig Date: Tue, 12 Nov 2013 10:45:10 +0000 (+0100) Subject: Style issues. X-Git-Url: https://git.yukkurigames.com/?a=commitdiff_plain;h=4d255150892bf298e9829d1619f1bb9e5eb03c21;p=123456789.git Style issues. --- diff --git a/game.js b/game.js index ac5b69f..aa47e74 100644 --- a/game.js +++ b/game.js @@ -28,7 +28,7 @@ var LEVEL_POS = [ [0, 2], [1, 2], [2, 2], [0, 1], [1, 1], [2, 1], [0, 0], [1, 0], [2, 0] -]; +]; var state = LEVEL_SELECT; @@ -37,9 +37,10 @@ var current_level = 1; var current_level_inst = null; function QueueChange(bead, sound) { - if (sound == null) + if (!sound) { sound = []; - bead_change.push(bead) + } + bead_change.push(bead); sounds.push(sound); }