fixed restart

This commit is contained in:
Garrett Finucane 2015-03-14 14:09:19 -04:00
parent a2df6064be
commit 1d9db9974b

View file

@ -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();
}