summaryrefslogtreecommitdiff
path: root/ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui.js')
-rw-r--r--ui.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui.js b/ui.js
index 8c28bc4..6502cea 100644
--- a/ui.js
+++ b/ui.js
@@ -572,12 +572,14 @@ function update_map() {
if ((town == S_POOL || town == F_POOL) && b != game.who)
known = "";
element.classList = info.owner + known + " block" + image + steps + moved;
- layout[town].south.push(element);
} else {
let besieging = (game.sieges[town] == info.owner) ? " besieging" : "";
element.classList = info.owner + " block" + moved + besieging;
- layout[town].north.push(element);
}
+ if (info.owner == FRANKS)
+ layout[town].north.push(element);
+ else
+ layout[town].south.push(element);
show_block(element);
} else {
hide_block(element);