summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriainp5 <iain.pearce.ip@gmail.com>2024-09-29 18:48:58 +0100
committeriainp5 <iain.pearce.ip@gmail.com>2024-09-29 18:48:58 +0100
commita06a62c75015746c1fd866f927ac78487bce2050 (patch)
tree694fdffbbc9d97f6fb85c048d8356cf3a9312308
parente4506aaf2cb4ecda82d71dfdc7b69f7ea589119f (diff)
download1989-dawn-of-freedom-a06a62c75015746c1fd866f927ac78487bce2050.tar.gz
Fix Government Resigns
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index fb08071..ed852d7 100644
--- a/rules.js
+++ b/rules.js
@@ -2671,9 +2671,9 @@ function count_adj(name_unique) {
function check_control(space_id) {
//console.log('in check control, space', spaces[space_id].name_unique)
- if (game.active === COM && ((game.comInfl[space_id] - game.demInfl[space_id]) >= spaces[space_id].stability)) {
+ if ( (game.comInfl[space_id] - game.demInfl[space_id]) >= spaces[space_id].stability) {
return true;
- } else if (game.active === DEM && ((game.demInfl[space_id] - game.comInfl[space_id]) >= spaces[space_id].stability)) {
+ } else if ((game.demInfl[space_id] - game.comInfl[space_id]) >= spaces[space_id].stability) {
//console.log('true')
return true;
} else {