From 1d9db9974b69410cf4d0c61fe5abd1a93aa1ba81 Mon Sep 17 00:00:00 2001 From: Garrett Finucane Date: Sat, 14 Mar 2015 14:09:19 -0400 Subject: [PATCH] fixed restart --- js_v9/input.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js_v9/input.js b/js_v9/input.js index b7431d5..893f57c 100644 --- a/js_v9/input.js +++ b/js_v9/input.js @@ -65,9 +65,12 @@ function addKeyListeners() { keypress.register_combo({ keys: "enter", on_keydown: function() { - if (gameState==2 || gameState==1 || importing == 1) { + if (gameState==1 || importing == 1) { init(1); } + if (gameState == 2) { + init(); + } if (gameState===0) { resumeGame(); }