From d3f6bee1eab1fb404f2c7e6a2b8622cf694cf83f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 19 Jul 2021 19:38:05 +0200 Subject: 300: Fix send_action with no argument. --- ui.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ui.js b/ui.js index 2ba20db..12c2eb7 100644 --- a/ui.js +++ b/ui.js @@ -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; -- cgit v1.2.3