diff options
author | Tor Andersson <tor@ccxvii.net> | 2022-03-24 20:22:58 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-03-24 20:27:29 +0100 |
commit | 70d818bee49e9f1eeed13cc3c2a169abde001aa5 (patch) | |
tree | 9f27f7f44e4652b5fec727ae2c4b63e754f8971f | |
parent | 3791abbff8d5bdc12b54a58241547b0148387581 (diff) | |
download | server-70d818bee49e9f1eeed13cc3c2a169abde001aa5.tar.gz |
Handle debugging save/restore in playbacks.
-rw-r--r-- | public/common/play.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/public/common/play.js b/public/common/play.js index 1ebc9dd..bfd33d2 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -651,6 +651,9 @@ async function init_replay() { case "resign": s = rules.resign(s, item.role); break; + case "restore": + s = JSON.parse(item.arguments); + break; default: s = rules.action(s, item.role, item.action, item.arguments); break; |