summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-30 21:52:33 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commit63b8fcbd6eb043eb19fce4265b65413040693256 (patch)
treedb64b4d91a849cf0fe9b450e08a0641f7e3861eb /play.js
parentacc8a4fc853c7c0e296487b250114f402b69fe95 (diff)
downloadfriedrich-63b8fcbd6eb043eb19fce4265b65413040693256.tar.gz
show combat explosion on top of everything else
Diffstat (limited to 'play.js')
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 66d6641..e70b83e 100644
--- a/play.js
+++ b/play.js
@@ -609,6 +609,7 @@ function on_init() {
ui.combat = document.createElement("div")
ui.combat.id = "combat"
+ ui.combat.style.zIndex = 2000
ui.tcbreak = document.createElement("div")
ui.tcbreak.className = "draw-break"
@@ -848,7 +849,6 @@ function layout_combat_marker() {
let y = (data.cities.y[view.attacker] + data.cities.y[view.defender]) >> 1
ui.combat.style.left = x - 20 + "px"
ui.combat.style.top = y - 20 + "px"
- ui.combat.style.zIndex = y
}
function create_conquest(style, s) {