From b6ca2a49ec7b7d700e0b4a3754d141cdcb3fd2c2 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 4 Feb 2015 10:00:25 +0100 Subject: fix changing of the WRONG cvar: fs_basepath instead of fs_basegame --- src/qcommon/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qcommon') diff --git a/src/qcommon/files.c b/src/qcommon/files.c index 11b78d3b..a22fd775 100644 --- a/src/qcommon/files.c +++ b/src/qcommon/files.c @@ -3648,7 +3648,7 @@ void FS_InitFilesystem( void ) { Com_Error( ERR_FATAL, "Couldn't load default.cfg" ); } - Q_strncpyz(lastValidBase, fs_basepath->string, sizeof(lastValidBase)); + Q_strncpyz(lastValidBase, fs_basegame->string, sizeof(lastValidBase)); Q_strncpyz(lastValidGame, fs_gamedirvar->string, sizeof(lastValidGame)); } @@ -3680,7 +3680,7 @@ void FS_Restart( int checksumFeed ) { // (for instance a TA demo server) if (lastValidBase[0]) { FS_PureServerSetLoadedPaks("", ""); - Cvar_Set("fs_basepath", lastValidBase); + Cvar_Set("fs_basegame", lastValidBase); Cvar_Set("fs_game", lastValidGame); lastValidBase[0] = '\0'; lastValidGame[0] = '\0'; @@ -3698,7 +3698,7 @@ void FS_Restart( int checksumFeed ) { } } - Q_strncpyz(lastValidBase, fs_basepath->string, sizeof(lastValidBase)); + Q_strncpyz(lastValidBase, fs_basegame->string, sizeof(lastValidBase)); Q_strncpyz(lastValidGame, fs_gamedirvar->string, sizeof(lastValidGame)); } -- cgit