]> 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...
authorMario <mario@smbclan.net>
Sat, 30 May 2020 14:11:05 +0000 (00:11 +1000)
committerMario <mario@smbclan.net>
Sat, 30 May 2020 14:11:05 +0000 (00:11 +1000)
fs.c

diff --git a/fs.c b/fs.c
index 590a336c6d91be736bcc3b486977fcea876c9334..72004d797f4b17784a3ee84ea1dcc62b868869bb 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -2159,7 +2159,7 @@ void FS_Init (void)
                        i++;
                        p = FS_CheckGameDir(com_argv[i]);
                        if(!p)
-                               Sys_Error("Nasty -game name rejected: %s", com_argv[i]);
+                               Con_Printf("WARNING: Nasty -game name rejected: %s\n", com_argv[i]);
                        if(p == fs_checkgamedir_missing)
                                Con_Warnf("WARNING: -game %s%s/ not found!\n", fs_basedir, com_argv[i]);
                        // add the gamedir to the list of active gamedirs