summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-01-17 15:09:05 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:39 +0100
commit5abd7f5472afe0f5461f668709bf2b379c0b48b5 (patch)
tree54b1c2b3b79dd5d423d6463d52797b5794379cc6
parentec0ba152ba9760fa0ce24eaaef165c963de48c18 (diff)
downloadnevsky-5abd7f5472afe0f5461f668709bf2b379c0b48b5.tar.gz
Show siege markers on castles in appropriate color.
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index 395d695..49240d8 100644
--- a/play.js
+++ b/play.js
@@ -1229,7 +1229,7 @@ function update_locale(loc) {
let sieges = map_get(view.pieces.sieges, loc)
if (sieges > 0) {
let cn
- if (is_p1_locale(loc))
+ if (is_p1_locale(loc) || set_has(view.pieces.castles1, loc))
cn = "marker square siege russian"
else
cn = "marker square siege teutonic"