]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
Don't crash the game if a "nasty" -game name is rejected, matches behavior of missing...
[xonotic/darkplaces.git] / 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