From ef96e4701a45ac622bfb9ce8c8cf52166a099dcf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 25 Jun 2021 12:17:02 +0200 Subject: richard: Fix rebel block layout error. --- ui.js | 4 +--- 1 file changed, 1 insertion(+), 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); -- cgit v1.2.3