From 936a573b340afda735139318646cca057a6d2c03 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sat, 7 Oct 2023 15:13:54 +0200 Subject: Revert "Fix update_aliases so it works with patch_replay.js" This reverts commit d01f5507ebf75427118135debf7ff772315cb9fe. --- rules.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rules.js b/rules.js index 0bf3a17..d59a622 100644 --- a/rules.js +++ b/rules.js @@ -782,8 +782,10 @@ function update_aliases() { } function load_state(state) { - game = state - update_aliases() + if (game !== state) { + game = state + update_aliases() + } } function push_state(next) { -- cgit v1.2.3