summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
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) {