]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix map loading in Nexuiz
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 15 Jul 2010 12:08:38 +0000 (12:08 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 15 Jul 2010 12:08:38 +0000 (12:08 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10328 d7cf8633-e32d-0410-b094-e92efae38249

sv_main.c

index 5a82ab16bf8e4d21ad62ad70dd3e1d3044036854..8969b60becbae8dc364f974df0a5bf0fc33e1cec 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -3075,11 +3075,11 @@ void SV_SpawnServer (const char *server)
 
        Con_DPrintf("SpawnServer: %s\n", server);
 
-       dpsnprintf (modelname, sizeof(modelname), "maps/%s", server);
+       dpsnprintf (modelname, sizeof(modelname), "maps/%s.bsp", server);
 
        if (!FS_FileExists(modelname))
        {
-               dpsnprintf (modelname, sizeof(modelname), "maps/%s.bsp", server);
+               dpsnprintf (modelname, sizeof(modelname), "maps/%s", server);
                if (!FS_FileExists(modelname))
                {
                        Con_Printf("SpawnServer: no map file named %s\n", modelname);