summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-17 01:14:52 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 12:12:42 +0100
commit29da4570f69c136cac8ad610566b9456e2cd3972 (patch)
tree092de88570e201efc13a5c2efd3d86eb09781eb6 /ui.js
parent7dc2657b0321b0ef680f9eb3aaeffc7e0d90ca9f (diff)
downloadshores-of-tripoli-29da4570f69c136cac8ad610566b9456e2cd3972.tar.gz
Allow passing '0' as action argument.
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui.js b/ui.js
index bc73b86..befdad6 100644
--- a/ui.js
+++ b/ui.js
@@ -69,9 +69,9 @@ function on_blur(evt) {
document.getElementById("status").textContent = "";
}
-function on_pass() { if (game.actions) { send_action('pass', null); } }
-function on_undo() { if (game.actions) { send_action('undo', null); } }
-function on_next() { if (game.actions) { send_action('next', null); } }
+function on_pass() { if (game.actions) { send_action('pass'); } }
+function on_undo() { if (game.actions) { send_action('undo'); } }
+function on_next() { if (game.actions) { send_action('next'); } }
function on_click_space(evt) { send_action('space', evt.target.space); }
function on_click_piece(evt) { send_action('piece', evt.target.piece); }