summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2025-01-10 11:53:12 +0100
committerTor Andersson <tor@ccxvii.net>2025-01-10 11:53:12 +0100
commit8354bdc5571d5ac3334bb876513ab3ea39db8bd4 (patch)
treec82d70711246ffc9595280e8127649b8517c331c
parentabce47240bca90398e2ded5505dc262e038f0a28 (diff)
download1989-dawn-of-freedom-8354bdc5571d5ac3334bb876513ab3ea39db8bd4.tar.gz
remove unflushed summary warnings
-rw-r--r--rules.js5
1 files changed, 0 insertions, 5 deletions
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()
}