]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing...
authorcloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)
committercloudwalk <cloudwalk@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 15 Jul 2020 14:59:07 +0000 (14:59 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12818 d7cf8633-e32d-0410-b094-e92efae38249

fs.c

diff --git a/fs.c b/fs.c
index c15b8ba00f4f235225ea7c9a650903b5788104d4..4b98e32ea4b96d4e4158d333b5270a949380e667 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2122,7 +2122,7 @@ static void FS_Init_Dir (void)
                        i++;
                        p = FS_CheckGameDir(sys.argv[i]);
                        if(!p)
-                               Sys_Error("Nasty -game name rejected: %s", sys.argv[i]);
+                               Con_Printf("WARNING: Nasty -game name rejected: %s\n", sys.argv[i]);
                        if(p == fs_checkgamedir_missing)
                                Con_Printf(CON_WARN "WARNING: -game %s%s/ not found!\n", fs_basedir, sys.argv[i]);
                        // add the gamedir to the list of active gamedirs