]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/qe3.cpp
Add uncommited change from db0e95d2 (merge c5065eec/f6b9708d)
[xonotic/netradiant.git] / radiant / qe3.cpp
index 69cf4c064c9ae12fbf46063cf0549ee6736d7a6f..ab62a9190bc28f35d1307ad04e8dcf2686ea4531 100644 (file)
@@ -101,7 +101,7 @@ void QE_InitVFS(){
                if ( !string_equal( homepath, enginepath ) )
                {
                // ~/.<gameprefix>/<fs_game>
-               if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+               if ( homepath && !string_equal( enginepath, homepath ) && !g_disableHomePath ) {
                        StringOutputStream userGamePath( 256 );
                                userGamePath << homepath << gamename << '/';
                        GlobalFileSystem().initDirectory( userGamePath.c_str() );
@@ -120,7 +120,7 @@ void QE_InitVFS(){
        if ( !string_equal( homepath, enginepath ) )
        {
        // ~/.<gameprefix>/<fs_main>
-       if ( userRoot && !string_equal( globalRoot, homepath ) && !g_disableHomePath ) {
+       if ( homepath && !string_equal( enginepath, homepath ) && !g_disableHomePath ) {
                StringOutputStream userBasePath( 256 );
                        userBasePath << homepath << basegame << '/';
                GlobalFileSystem().initDirectory( userBasePath.c_str() );