diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-25 12:17:02 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:12:55 +0100 |
commit | ef96e4701a45ac622bfb9ce8c8cf52166a099dcf (patch) | |
tree | 90ac1dcda09770fcc4b88930f78c4741daf95a65 | |
parent | 7c85022a92ee7f5cb478cb6ae08ba88d8f073b2a (diff) | |
download | richard-iii-ef96e4701a45ac622bfb9ce8c8cf52166a099dcf.tar.gz |
richard: Fix rebel block layout error.
-rw-r--r-- | ui.js | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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); |