diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-19 19:38:05 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 12:42:59 +0100 |
commit | d3f6bee1eab1fb404f2c7e6a2b8622cf694cf83f (patch) | |
tree | d801acf7c883650e7b5d3f5692b75e399c621e64 | |
parent | 6626f75bca814df27114d79258e6b0a6683e6ac7 (diff) | |
download | 300-earth-and-water-d3f6bee1eab1fb404f2c7e6a2b8622cf694cf83f.tar.gz |
300: Fix send_action with no argument.
-rw-r--r-- | ui.js | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -535,13 +535,13 @@ function update_ui() { e.classList.remove("selected"); } -function on_destroy() { if (game.actions) { send_action('destroy', null); } } -function on_battle() { if (game.actions) { send_action('battle', null); } } -function on_build() { if (game.actions) { send_action('build', null); } } -function on_draw() { if (game.actions) { send_action('draw', null); } } -function on_next() { if (game.actions) { send_action('next', null); } } -function on_pass() { if (game.actions) { send_action('pass', null); } } -function on_undo() { if (game.actions) { send_action('undo', null); } } +function on_destroy() { if (game.actions) { send_action('destroy'); } } +function on_battle() { if (game.actions) { send_action('battle'); } } +function on_build() { if (game.actions) { send_action('build'); } } +function on_draw() { if (game.actions) { send_action('draw'); } } +function on_next() { if (game.actions) { send_action('next'); } } +function on_pass() { if (game.actions) { send_action('pass'); } } +function on_undo() { if (game.actions) { send_action('undo'); } } let current_popup_card = 0; |