Commit 9945f0d7 authored by Rob Swindell's avatar Rob Swindell 💬

Go back to the rev 1.37 behavior (don't confirm RESET when run via JSexec)

... but do it do it correctly. This allows for automated game-reset, e.g.
via cron job or timed event.
parent 8247b472
......@@ -16765,7 +16765,7 @@ function cmdline()
settings.menu_dir = argv[i];
}
else if (argv[i].toUpperCase() === 'RESET') {
if(!deny("Reset LORD")) {
if(!js.global.bbs || !deny("Reset LORD")) {
file_remove(gamedir('state.bin'));
file_remove(gamedir('player.bin'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment