summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-11-16 09:06:59 +0000
committeriainp5 <iain.pearce.ip@gmail.com>2024-11-16 09:06:59 +0000
commit7f729722dec329486d8d205c593f3517487e3da9 (patch)
tree6a97caa65573f6b8c974d2b67b9296a805be3b06
parent04971bb43cc866cecbcca0ce07d63ea3a3ce3803 (diff)
download1989-dawn-of-freedom-7f729722dec329486d8d205c593f3517487e3da9.tar.gz
Improve the wall must go logging
-rw-r--r--rules.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 0c677d8..c62604a 100644
--- a/rules.js
+++ b/rules.js
@@ -3255,10 +3255,16 @@ function finish_the_wall() {
}
}
if (game.active === DEM) {next_player()}
+ game.return = COM
vm_next ()
} else {
permanently_remove(C_THE_WALL_MUST_GO)
delete game.the_wall_must_go
+ if (game.vm_infl_to_do) {
+ game.return = COM
+ } else {
+ game.return = game.active
+ }
vm_return()
}
}