From 937d8af3adec901a99e63b7f5152bc5605169d92 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 14 Jul 2023 12:27:40 +0200 Subject: Fix bugs. --- play.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'play.js') 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]) + } } } -- cgit v1.2.3