summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/rules.js b/rules.js
index 53949f0..f0cfa6e 100644
--- a/rules.js
+++ b/rules.js
@@ -9698,14 +9698,6 @@ function load_game_state(state) {
update_active_aliases()
}
-exports.resign = function (state, current) {
- load_game_state(state)
- delete game.retro_foul_weather
- if (game.state !== 'game_over')
- goto_game_over(current === FRANCE ? BRITAIN : FRANCE, current + " resigned.")
- return game
-}
-
exports.action = function (state, current, action, arg) {
load_game_state(state)
if (action in states[game.state])
@@ -9750,8 +9742,10 @@ function inactive_prompt(name, who, where) {
exports.view = function(state, current) {
load_game_state(state)
- if (game.retro_foul_weather && game.state !== 'foul_weather' && current !== game.active) {
- load_game_state(game.retro_foul_weather)
+ if (game.state !== "game_over") {
+ if (game.retro_foul_weather && game.state !== 'foul_weather' && current !== game.active) {
+ load_game_state(game.retro_foul_weather)
+ }
}
view = {