summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-27 22:44:52 +0200
committerTor Andersson <tor@ccxvii.net>2023-02-18 11:54:52 +0100
commitdd7e07464eb1ac1682b9ad5154d899d336bc00a2 (patch)
treedb43ce8f40956571e61bdb5269a455d702286e4c
parent047b837cbd4893258fcdb2ed5c30f1e982f66e54 (diff)
downloadwilderness-war-dd7e07464eb1ac1682b9ad5154d899d336bc00a2.tar.gz
Fix issue with resigning.
-rw-r--r--rules.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.js b/rules.js
index c4d3172..fd3c01a 100644
--- a/rules.js
+++ b/rules.js
@@ -9433,7 +9433,7 @@ function load_game_state(state) {
exports.resign = function (state, current) {
load_game_state(state);
if (game.state !== 'game_over')
- goto_game_over(enemy(), current + " resigned.");
+ goto_game_over(current === FRANCE ? BRITAIN : FRANCE, current + " resigned.");
return game;
}