summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-04-02 13:16:13 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-04-02 13:16:13 -0400
commitd01adec15a2b90c33b5aecf62af858732910ff51 (patch)
tree096f0eb6c9c4cfd0785de240a2c948df618b865b
parent495411a68520a8b73611cf5688c5afb50a4e5898 (diff)
downloadvijayanagara-d01adec15a2b90c33b5aecf62af858732910ff51.tar.gz
Fuzzing - summaries open
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 16e6876..bfd9c0c 100644
--- a/rules.js
+++ b/rules.js
@@ -4551,8 +4551,10 @@ function vm_log_h2() {
}
function vm_pop_summary() {
- upop_summary()
- log_br()
+ if (game.summary) {
+ upop_summary()
+ log_br()
+ }
vm_next()
}
@@ -4826,7 +4828,8 @@ function end_vm_move_to(s) {
if (game.summary && game.summary.length > 0) {
log_space(vm_operand(1), "Move")
pop_summary()
- }
+ } else if (game.summary)
+ game.summary = null
vm_next()
}