]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - fs.c
cvar: fix many bugs in gamedir, loadconfig, unset, cvar_resettodefaults* commands
[xonotic/darkplaces.git] / fs.c
diff --git a/fs.c b/fs.c
index c76a1467404af29dfba00a7c51fd962b57f14957..e1b22c46e6c8bce318118b441ae01b9a0e84634e 100644 (file)
--- a/fs.c
+++ b/fs.c
@@ -1713,8 +1713,8 @@ qbool FS_ChangeGameDirs(int numgamedirs, char gamedirs[][MAX_QPATH], qbool compl
        // unload all sounds so they will be reloaded from the new files as needed
        S_UnloadAllSounds_f(cmd_local);
 
-       // restart the video subsystem after the config is executed
-       Cbuf_InsertText(cmd_local, "\nloadconfig\nvid_restart\n\n");
+       // reset everything that can be and reload configs
+       Cbuf_InsertText(cmd_local, "\nloadconfig\n");
 
        return true;
 }