From 6ef7cdea7be9a2d0af1bf2bbe3145180d29ba785 Mon Sep 17 00:00:00 2001 From: lengstrom Date: Thu, 27 Aug 2015 00:24:59 -0400 Subject: [PATCH] fixed pause not working if u try pausing in main menu --- js_v9/view.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js_v9/view.js b/js_v9/view.js index 7d4437c..7f06bf1 100644 --- a/js_v9/view.js +++ b/js_v9/view.js @@ -165,9 +165,10 @@ function updateHighScores (){ } var pausable = true; function pause(o) { - if(!pausable){ - return; - } + if (gameState == 0 || gameState == 2 || !pausable) { + return; + } + pausable = false; writeHighScores(); var message;