X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=host_cmd.c;h=21ad53e6ee25648a4d5f916509a867dd269e7c75;hb=76f9a5393f80aa5fa7525e14cfc92198ecd224ad;hp=2efcdd05626f41c1fd4f5a84b6673c6bcb3438d0;hpb=0e936f973c3dcb7f74691912db3ad85e8805ccf1;p=xonotic%2Fdarkplaces.git diff --git a/host_cmd.c b/host_cmd.c index 2efcdd05..21ad53e6 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -500,7 +500,7 @@ void Host_Savegame_f (void) FS_DefaultExtension (name, ".sav", sizeof (name)); Con_Printf("Saving game to %s...\n", name); - f = FS_Open (name, "wb", false); + f = FS_Open (name, "wb", false, false); if (!f) { Con_Print("ERROR: couldn't open.\n"); @@ -533,8 +533,6 @@ void Host_Savegame_f (void) } -extern mempool_t *edictstring_mempool; - /* =============== Host_Loadgame_f @@ -629,8 +627,8 @@ void Host_Loadgame_f (void) { // light style COM_ParseToken(&t, false); - sv.lightstyles[i] = Mem_Alloc(edictstring_mempool, strlen(com_token)+1); - strcpy (sv.lightstyles[i], com_token); + sv.lightstyles[i] = PR_Alloc(strlen(com_token)+1); + strcpy(sv.lightstyles[i], com_token); } // load the edicts out of the savegame file @@ -1846,7 +1844,7 @@ static void MaxPlayers_f(void) if (svs.clients) Mem_Free(svs.clients); svs.maxclients = n; - svs.clients = Mem_Alloc(sv_clients_mempool, sizeof(client_t) * svs.maxclients); + svs.clients = Mem_Alloc(sv_mempool, sizeof(client_t) * svs.maxclients); if (n == 1) Cvar_Set ("deathmatch", "0"); else