summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-12 15:43:40 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:12:55 +0100
commit0cc48e6f18fc4b069c34b62d73f1d9bbb687f5f9 (patch)
tree81edb79ffba37acb46c761adf744bd012b269b8c
parent71e9b55381f573a19919e89f1dcf444551401ed3 (diff)
downloadrichard-iii-0cc48e6f18fc4b069c34b62d73f1d9bbb687f5f9.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 ca30939..134f0c7 100644
--- a/play.js
+++ b/play.js
@@ -87,7 +87,9 @@ create_log_entry = function (text) {
}
function is_known_block(b) {
- return view.game_over || block_owner(b) === player;
+ if (view.game_over && player === 'Observer')
+ return true;
+ return block_owner(b) === player;
}
function on_focus_area(evt) {