summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-06-25 12:17:02 +0200
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commitef96e4701a45ac622bfb9ce8c8cf52166a099dcf (patch)
tree90ac1dcda09770fcc4b88930f78c4741daf95a65
parent7c85022a92ee7f5cb478cb6ae08ba88d8f073b2a (diff)
downloadrichard-iii-ef96e4701a45ac622bfb9ce8c8cf52166a099dcf.tar.gz
richard: Fix rebel block layout error.
-rw-r--r--ui.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui.js b/ui.js
index 7b2c336..5e93d4a 100644
--- a/ui.js
+++ b/ui.js
@@ -565,9 +565,7 @@ function update_map() {
let steps = game.known[b][1];
let moved = game.known[b][2];
let element = ui.known[b];
- let color = BLOCKS[b].owner;
- if (color == REBEL)
- color = game.pretender;
+ let color = block_owner(b);
show_block(element);
layout[area][color].push(element);