From e94eac9df7688b8742eac0ccd13bad897013bfbc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Wed, 4 Jan 2023 14:42:54 +0100 Subject: Allow debugging "restored" games. --- public/common/play.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public') diff --git a/public/common/play.js b/public/common/play.js index 9e330c0..2059678 100644 --- a/public/common/play.js +++ b/public/common/play.js @@ -776,6 +776,9 @@ async function init_replay(debug) { function eval_action(item) { switch (item.action) { + case "restore": + s = JSON.parse(item.arguments) + break case "setup": s = rules.setup(item.arguments[0], item.arguments[1], item.arguments[2]) break -- cgit v1.2.3