Skip to content
Snippets Groups Projects
Commit bb2aa3ba authored by ReformCopyright's avatar ReformCopyright Committed by ReformCopyright
Browse files

Now that auto forfeit works, there's no need to start the auto forfeit timer...

Now that auto forfeit works, there's no need to start the auto forfeit timer after closing the Options modal. If actualMainButtonState is true, there's always already some timeout set, and it would be wrong to set another one, and if actualMainButtonState is false, the main button will be enabled, allowing progression.
parent 5fe04f1c
No related branches found
No related tags found
No related merge requests found
......@@ -181,12 +181,7 @@ function setAutoForfeit (choice) {
}
$("#options-modal").on("hidden.bs.modal", function () {
if (players[HUMAN_PLAYER].out && AUTO_FORFEIT) {
setTimeout(advanceGame, FORFEIT_DELAY);
$mainButton.attr('disabled', true);
} else {
$mainButton.attr('disabled', actualMainButtonState);
}
$mainButton.attr('disabled', actualMainButtonState);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment