summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-12 15:43:15 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-17 12:53:18 +0100
commita8d7869b88e534a98aec5e97bf87ce8d3fd7a419 (patch)
tree03505b1433ab1c1007ce7ed2223cbded6af782a1
parentf4cc9af0b71f5ee5a98cf33be805e5a17eca5f99 (diff)
downloadhammer-of-the-scots-a8d7869b88e534a98aec5e97bf87ce8d3fd7a419.tar.gz
Only reveal all blocks in replay.
-rw-r--r--play.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/play.js b/play.js
index d971c9c..0477792 100644
--- a/play.js
+++ b/play.js
@@ -101,7 +101,9 @@ function block_name(who) {
}
function is_known_block(b) {
- return (view.game_over || BLOCKS[b].owner === player);
+ if (view.game_over && player === 'Observer')
+ return true;
+ return BLOCKS[b].owner === player;
}
function on_focus_map_block(evt) {