summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-05-29 15:39:51 +0200
committerTor Andersson <tor@ccxvii.net>2023-05-29 15:39:51 +0200
commitb5e5d8ff63e273e7be4f93e1f3721252607661aa (patch)
tree15b57391fa136bb4d7f6874ce5958d4ddb520188
parentb97c266b0fee948846814965e83bda1cfbe50694 (diff)
downloadred-flag-over-paris-b5e5d8ff63e273e7be4f93e1f3721252607661aa.tar.gz
Fix victory check.
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index 998ac09..ecddd49 100644
--- a/rules.js
+++ b/rules.js
@@ -2407,9 +2407,9 @@ function goto_final_victory() {
log_br()
- if (versailles_military_vp() >= commune_political_vp())
+ if (versailles_military_vp() >= 0 && versailles_military_vp() > commune_political_vp())
return goto_game_over(VERSAILLES, "Versailles won with Military VP!")
- if (commune_political_vp() >= versailles_military_vp())
+ if (commune_political_vp() >= 0 && commune_political_vp() > versailles_military_vp())
return goto_game_over(COMMUNE, "Commune won with Political VP!")
let v = 0