From 32484ac4a075ed6fbaaa0d656bb01739cf857fcc Mon Sep 17 00:00:00 2001 From: John Alanbrook Date: Fri, 26 Apr 2024 17:06:43 -0500 Subject: [PATCH] If command not found, play game --- scripts/std.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/std.js b/scripts/std.js index c04e09f..e795653 100644 --- a/scripts/std.js +++ b/scripts/std.js @@ -455,8 +455,8 @@ function cmd_args(cmdargs) if (cmds.length === 0) cmds[0] = "play"; else if (!Cmdline.orders[cmds[0]]) { - console.warn(`Command ${cmds[0]} not found.`); - return; + cmds[0] = "play"; + console.warn(`Command ${cmds[0]} not found. Playing instead.`); } Cmdline.orders[cmds[0]](cmds.slice(1));