fixed the whole weird stuff
This commit is contained in:
parent
38164ebe1f
commit
f6b56382cf
2 changed files with 5 additions and 5 deletions
|
@ -100,7 +100,7 @@ keypress.register_combo({
|
|||
if (gameState==2 || gameState==1) {
|
||||
init(1);
|
||||
}
|
||||
if (gameState==0){ gameState=1}
|
||||
if (gameState==0){ init();}
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -124,13 +124,13 @@ function handleClickTap(x) {
|
|||
|
||||
if (x < window.innerWidth/2) {
|
||||
if (gameState != 1 && gameState != -2 && gameState != -1 ){
|
||||
gameState=1;
|
||||
init();
|
||||
}
|
||||
MainClock.rotate(1);
|
||||
}
|
||||
if (x > window.innerWidth/2) {
|
||||
if (gameState != 1 && gameState != -2 && gameState != -1) {
|
||||
gameState=1;
|
||||
init();
|
||||
}
|
||||
MainClock.rotate(-1);
|
||||
}
|
||||
|
|
|
@ -240,7 +240,7 @@ function importHistory(j) {
|
|||
alert("Error importing JSON");
|
||||
}
|
||||
} else {
|
||||
init(1);
|
||||
init();
|
||||
importing = 1;
|
||||
importedHistory = j;
|
||||
}
|
||||
|
@ -266,11 +266,11 @@ function stepInitialLoad() {
|
|||
}
|
||||
|
||||
function setStartScreen() {
|
||||
init();
|
||||
$('#startBtn').show();
|
||||
if (!isStateSaved()) {
|
||||
importHistory(introJSON);
|
||||
} else {
|
||||
init();
|
||||
importing = 0;
|
||||
}
|
||||
gameState = 0;
|
||||
|
|
Loading…
Reference in a new issue