]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
somehow I missed this edit in the other maps/ checks
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 May 2010 09:35:09 +0000 (09:35 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 11 May 2010 09:35:09 +0000 (09:35 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10189 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index a0d340b276b2634cc03816ec48ef15dca9673d49..30ee1720af3d298aa7b9d10b34e0f9804808f8af 100644 (file)
@@ -1794,7 +1794,7 @@ void CL_ParseServerInfo (void)
                // set the base name for level-specific things...  this gets updated again by CL_SetupWorldModel later
                strlcpy(cl.worldname, cl.model_name[1], sizeof(cl.worldname));
                FS_StripExtension(cl.worldname, cl.worldnamenoextension, sizeof(cl.worldnamenoextension));
-               strlcpy(cl.worldbasename, FS_FileWithoutPath(cl.worldnamenoextension), sizeof(cl.worldbasename));
+               strlcpy(cl.worldbasename, !strncmp(cl.worldnamenoextension, "maps/", 5) ? cl.worldnamenoextension + 4 : cl.worldnamenoextension, sizeof(cl.worldbasename));
                Cvar_SetQuick(&cl_worldmessage, cl.worldmessage);
                Cvar_SetQuick(&cl_worldname, cl.worldname);
                Cvar_SetQuick(&cl_worldnamenoextension, cl.worldnamenoextension);