summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2023-03-17 13:20:15 +0100
committerTor Andersson <tor@ccxvii.net>2023-03-17 13:20:56 +0100
commit89752a9f5c3876e81ecbd7314f9740644a8ba56b (patch)
treef9f7986ede644e208e29450cb1f9b093a40830e0 /tools
parentbd835413cf9767c35aa3b0e7c55e200a67127fb8 (diff)
downloadserver-89752a9f5c3876e81ecbd7314f9740644a8ba56b.tar.gz
Avoid action name collision with debugging command "restore".
Diffstat (limited to 'tools')
-rw-r--r--tools/patchgame.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/patchgame.js b/tools/patchgame.js
index d0a27f0..42b6c57 100644
--- a/tools/patchgame.js
+++ b/tools/patchgame.js
@@ -47,10 +47,7 @@ try {
game = rules.setup(args[0], args[1], args[2])
else if (item.action === 'resign')
game = rules.resign(game, item.role)
- else if (item.action === 'restore') {
- game = JSON.parse(args)
- console.log("RESTORE", i, game.state, game.active)
- } else {
+ else {
console.log("ACTION", i, game.state, game.active, ">", item.role, item.action, item.arguments)
if (VERIFY) {
if (!is_valid_action(rules, game, item.role, item.action, args)) {