summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-21 17:14:34 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit6f3c4bdb9d983e7ad4f2a1ef89eb0dfee9d608e1 (patch)
tree78384c3bd488b6822dfc9ecaec4c81e3d17a608c /play.js
parentbbfd640bf2b82ab390261fcc5d525454dff67cfe (diff)
downloadnevsky-6f3c4bdb9d983e7ad4f2a1ef89eb0dfee9d608e1.tar.gz
Don't manually click to build siegeworks.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index d761966..29bf0d9 100644
--- a/play.js
+++ b/play.js
@@ -940,7 +940,9 @@ function update_lord_mat(ix) {
}
function is_lord_mat_selected(ix) {
- return ix === view.who
+ if (view.who >= 0)
+ return ix === view.who
+ return ix === view.command
}
function is_cylinder_selected(ix) {