diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:27:40 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-07-14 12:27:40 +0200 |
commit | 937d8af3adec901a99e63b7f5152bc5605169d92 (patch) | |
tree | fcefbc3c0792e51467013a2c1723d53586166b7a /play.js | |
parent | 7278ea0172ce4bdeeaa18508ea368a49b97fdcf2 (diff) | |
download | time-of-crisis-937d8af3adec901a99e63b7f5152bc5605169d92.tar.gz |
Fix bugs.
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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]) + } } } |