From: Holger Schemel Date: Thu, 11 Jan 2018 12:46:09 +0000 (+0100) Subject: changed fallback to default level set on errors only when run interactively X-Git-Tag: 4.0.1.1~12 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=3e260bd26ec0df0531a83f1323178743f641187d;p=rocksndiamonds.git changed fallback to default level set on errors only when run interactively --- diff --git a/src/init.c b/src/init.c index 884ee541..54f4277d 100644 --- a/src/init.c +++ b/src/init.c @@ -6115,7 +6115,7 @@ void CloseAllAndExit(int exit_value) CloseVideoDisplay(); ClosePlatformDependentStuff(); - if (exit_value != 0) + if (exit_value != 0 && !options.execute_command) { /* fall back to default level set (current set may have caused an error) */ SaveLevelSetup_LastSeries_Deactivate();