From 8354bdc5571d5ac3334bb876513ab3ea39db8bd4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 10 Jan 2025 11:53:12 +0100 Subject: remove unflushed summary warnings --- rules.js | 5 ----- 1 file changed, 5 deletions(-) (limited to 'rules.js') diff --git a/rules.js b/rules.js index 82e22fb..74d83bd 100644 --- a/rules.js +++ b/rules.js @@ -4316,8 +4316,6 @@ function country_name(country) { // ======== LOG FUNCTIONS ============= function log(msg) { - if (game.summary.length > 0) - throw new Error("UNFLUSHED SUMMARY") game.log.push(msg) } @@ -4370,8 +4368,6 @@ function log_event(n) { } function log_br() { - if (game.summary.length > 0) - throw new Error("UNFLUSHED SUMMARY") if (game.log.length > 0 && game.log[game.log.length - 1] !== "") { game.log.push("") } @@ -4584,7 +4580,6 @@ function vm_inst(a) { function vm_next() { if (game.summary.length > 0) summary_flush() - //throw new Error("UNFLUSHED SUMMARY IN EVENT " + game.vm.fp) game.vm.ip++ vm_exec() } -- cgit v1.2.3