fixed restart
This commit is contained in:
parent
a2df6064be
commit
1d9db9974b
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue