diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-09-03 15:05:31 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-17 13:11:27 +0100 |
commit | c1b934d988f7e21d28ec0b84e2792e638fab2b31 (patch) | |
tree | f118ce0f17bee48cd9c22295004ce477f26bf058 | |
parent | 5930acada41dcaea28781a61194f76dc3a0133ec (diff) | |
download | rommel-in-the-desert-c1b934d988f7e21d28ec0b84e2792e638fab2b31.tar.gz |
Close stack by clicking inactive units in open stack.
-rw-r--r-- | play.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -292,7 +292,8 @@ function on_click_unit(evt) { hide_supply() evt.stopPropagation() if (focus_stack(evt.target.stack, evt.target.hex)) - send_action('unit', evt.target.unit) + if (!send_action('unit', evt.target.unit)) + blur_stack() } } |