From 4d255150892bf298e9829d1619f1bb9e5eb03c21 Mon Sep 17 00:00:00 2001 From: Joe Wreschnig Date: Tue, 12 Nov 2013 11:45:10 +0100 Subject: [PATCH] Style issues. --- game.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); } -- 2.30.2