summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-07-14 12:27:40 +0200
committerTor Andersson <tor@ccxvii.net>2023-07-14 12:27:40 +0200
commit937d8af3adec901a99e63b7f5152bc5605169d92 (patch)
treefcefbc3c0792e51467013a2c1723d53586166b7a /play.js
parent7278ea0172ce4bdeeaa18508ea368a49b97fdcf2 (diff)
downloadtime-of-crisis-937d8af3adec901a99e63b7f5152bc5605169d92.tar.gz
Fix bugs.
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 25ca516..f2b723a 100644
--- a/play.js
+++ b/play.js
@@ -1354,8 +1354,10 @@ function on_update() {
for (let tribe = 0; tribe < 5; ++tribe) {
for (let id = first_barbarian[tribe]; id <= last_barbarian[tribe]; ++id) {
let loc = get_barbarian_location(id)
- if (loc === army)
+ if (loc === army) {
+ ui.barbarians[id].classList.toggle("inactive", false)
stack.push(ui.barbarians[id])
+ }
}
}