summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-03-24 20:22:58 +0100
committerTor Andersson <tor@ccxvii.net>2022-03-24 20:27:29 +0100
commit70d818bee49e9f1eeed13cc3c2a169abde001aa5 (patch)
tree9f27f7f44e4652b5fec727ae2c4b63e754f8971f /public
parent3791abbff8d5bdc12b54a58241547b0148387581 (diff)
downloadserver-70d818bee49e9f1eeed13cc3c2a169abde001aa5.tar.gz
Handle debugging save/restore in playbacks.
Diffstat (limited to 'public')
-rw-r--r--public/common/play.js3
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;