From b5e5d8ff63e273e7be4f93e1f3721252607661aa Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 29 May 2023 15:39:51 +0200 Subject: Fix victory check. --- rules.js | 4 ++-- 1 file 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 -- cgit v1.2.3