diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-17 01:14:52 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:12:42 +0100 |
commit | 29da4570f69c136cac8ad610566b9456e2cd3972 (patch) | |
tree | 092de88570e201efc13a5c2efd3d86eb09781eb6 /ui.js | |
parent | 7dc2657b0321b0ef680f9eb3aaeffc7e0d90ca9f (diff) | |
download | shores-of-tripoli-29da4570f69c136cac8ad610566b9456e2cd3972.tar.gz |
Allow passing '0' as action argument.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |