summaryrefslogtreecommitdiff
path: root/play.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-01-12 15:43:28 +0100
committerTor Andersson <tor@ccxvii.net>2022-11-16 19:08:56 +0100
commiteed29c9d8bf042633f1b74eec3c6e00f7256d98e (patch)
treec38b1e985cb8dbf6c092ac5aff31e310b75f9512 /play.js
parent16a72748e52eddae18eb968310cbbe373effecf5 (diff)
downloadjulius-caesar-eed29c9d8bf042633f1b74eec3c6e00f7256d98e.tar.gz
Only reveal all blocks in replay.
Diffstat (limited to 'play.js')
-rw-r--r--play.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/play.js b/play.js
index 0fb4411..000eec8 100644
--- a/play.js
+++ b/play.js
@@ -434,7 +434,7 @@ function hide_block(element) {
}
function is_known_block(who) {
- if (view.game_over)
+ if (view.game_over && player === 'Observer')
return true;
if (block_owner(who) === player)
return true;
@@ -445,7 +445,7 @@ function is_known_block(who) {
}
function is_visible_block(where, who) {
- if (view.game_over)
+ if (view.game_over && player === 'Observer')
return true;
if (where === "Levy")
return block_owner(who) === player;