summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
Diffstat (limited to 'play.js')
-rw-r--r--play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/play.js b/play.js
index a1e2313..6455535 100644
--- a/play.js
+++ b/play.js
@@ -505,7 +505,10 @@ function layout_stack(loc_id, box_id) {
e.my_stack = stack
e.style.left = x + "px"
e.style.top = y + "px"
- e.style.zIndex = z++
+ if (is_unit_selected(e.my_id))
+ e.style.zIndex = 100 + z++
+ else
+ e.style.zIndex = z++
x += dx
y += dy
}