diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-09-24 23:49:28 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-10-01 16:11:22 +0200 |
commit | 7f0c3fbd196dad80699aa74254fe37a3b72de32d (patch) | |
tree | c11e8cce817f9655be321918a239bf94b6dfd3b2 /rules.js | |
parent | 8df1c18e7594de3fede403361b83cfc0437f366c (diff) | |
download | waterloo-campaign-1815-7f0c3fbd196dad80699aa74254fe37a3b72de32d.tar.gz |
Fix ZOC cache bug!
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -2491,6 +2491,7 @@ function gen_action_stop_hex(hex) { } exports.view = function (state, player) { + zoc_valid = false game = state view = { @@ -2547,6 +2548,7 @@ exports.action = function (state, player, action, arg) { } exports.resign = function (state, player) { + zoc_valid = false game = state if (game.state !== 'game_over') { if (player === P1) |