]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - sv_main.c
web download patch from div0, this adds the "curl" console command, and the ability...
[xonotic/darkplaces.git] / sv_main.c
index 2efbb8895127c36094a638d4225719bec70375cb..2e45d00f0931382a9e373c1509587c43aaf3a375 100644 (file)
--- a/sv_main.c
+++ b/sv_main.c
@@ -20,6 +20,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 // sv_main.c -- server main program
 
 #include "quakedef.h"
+#include "libcurl.h"
 
 void SV_VM_Init();
 void SV_VM_Setup();
@@ -1677,6 +1678,10 @@ void SV_SpawnServer (const char *server)
 
        svs.changelevel_issued = false;         // now safe to issue another
 
+       // make the map a required file for clients
+       Curl_ClearRequirements();
+       Curl_RequireFile(modelname);
+
 //
 // tell all connected clients that we are going to a new level
 //