From 2b6f168ed9ec5ab91d54ffdd8e02730b2404f96f Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 30 Apr 2025 00:36:20 +0200 Subject: Clear undo on game end. --- rules.js | 1 + title.sql | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rules.js b/rules.js index 7d45ace..7bd9166 100644 --- a/rules.js +++ b/rules.js @@ -190,6 +190,7 @@ exports.view = function (state, player) { } function goto_game_over(result, victory) { + clear_undo() game.state = "game_over" game.active = "None" game.result = result diff --git a/title.sql b/title.sql index 1f4118a..b7776c0 100644 --- a/title.sql +++ b/title.sql @@ -1,4 +1 @@ -insert or replace into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'field-cloth-gold', 'Field of the Cloth of Gold', 309752, 1 ); -insert or ignore into setups ( title_id, player_count, scenario, options ) values - ( 'field-cloth-gold', 2, 'Standard', '{}' ) -; +insert or ignore into titles ( title_id, title_name, bgg, is_symmetric ) values ( 'field-cloth-gold', 'Field of the Cloth of Gold', 309752, 1 ); -- cgit v1.2.3