diff options
author | /dev/humancontroller <devhc@example.com> | 2015-02-04 10:00:25 +0100 |
---|---|---|
committer | /dev/humancontroller <devhc@example.com> | 2017-03-09 13:51:06 +0100 |
commit | b6ca2a49ec7b7d700e0b4a3754d141cdcb3fd2c2 (patch) | |
tree | 1acd012ae60d3b48f6785b60c5519503e01caa5e /src/qcommon | |
parent | 770927d96349d9cefa4cb08bed8796a7e583e03d (diff) |
fix changing of the WRONG cvar: fs_basepath instead of fs_basegame
Diffstat (limited to 'src/qcommon')
-rw-r--r-- | src/qcommon/files.c | 6 |
1 files changed, 3 insertions, 3 deletions
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)); } |