From 42809963cbbc3ad67a5a91c7faf425b5e3acebb6 Mon Sep 17 00:00:00 2001 From: Tyler DeVos Date: Fri, 13 Jul 2018 15:14:27 -0500 Subject: [PATCH] Prevent start button from being selectable while in help menu. --- js/main.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/main.js b/js/main.js index 90101759b..d7ea90921 100644 --- a/js/main.js +++ b/js/main.js @@ -350,6 +350,11 @@ function checkGameOver() { } function showHelp() { + // Prevent start button from being click while in help + if (gameState == 0) { + $('#startBtn').toggle(); + } + if ($('#openSideBar').attr('src') == './images/btn_back.svg') { $('#openSideBar').attr('src', './images/btn_help.svg'); if (gameState != 0 && gameState != -1 && gameState != 2) {