host.c (Host_ShutdownServer): no need to clear the sv structure, because
ServerSpawn already do this by Host_ClearMemory. git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@782 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
7ce7ce71ca
commit
b3d2bb6884
11
Quake/host.c
11
Quake/host.c
|
@ -369,12 +369,14 @@ void SV_BroadcastPrintf (const char *fmt, ...)
|
|||
va_end (argptr);
|
||||
|
||||
for (i = 0; i < svs.maxclients; i++)
|
||||
{
|
||||
if (svs.clients[i].active && svs.clients[i].spawned)
|
||||
{
|
||||
MSG_WriteByte (&svs.clients[i].message, svc_print);
|
||||
MSG_WriteString (&svs.clients[i].message, string);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
=================
|
||||
|
@ -525,7 +527,7 @@ void Host_ShutdownServer(qboolean crash)
|
|||
//
|
||||
// clear structures
|
||||
//
|
||||
memset (&sv, 0, sizeof(sv));
|
||||
// memset (&sv, 0, sizeof(sv)); // ServerSpawn already do this by Host_ClearMemory
|
||||
memset (svs.clients, 0, svs.maxclientslimit*sizeof(client_t));
|
||||
}
|
||||
|
||||
|
@ -810,8 +812,7 @@ void Host_Init (void)
|
|||
{
|
||||
if (standard_quake)
|
||||
minimum_memory = MINIMUM_MEMORY;
|
||||
else
|
||||
minimum_memory = MINIMUM_MEMORY_LEVELPAK;
|
||||
else minimum_memory = MINIMUM_MEMORY_LEVELPAK;
|
||||
|
||||
if (COM_CheckParm ("-minmemory"))
|
||||
host_parms->memsize = minimum_memory;
|
||||
|
@ -856,7 +857,7 @@ void Host_Init (void)
|
|||
ExtraMaps_Init (); //johnfitz
|
||||
Modlist_Init (); //johnfitz
|
||||
VID_Init ();
|
||||
IN_Init (); // moved here, SDL inits the input system with the video system -- kristian
|
||||
IN_Init ();
|
||||
TexMgr_Init (); //johnfitz
|
||||
Draw_Init ();
|
||||
SCR_Init ();
|
||||
|
@ -926,7 +927,7 @@ void Host_Shutdown(void)
|
|||
BGM_Shutdown();
|
||||
CDAudio_Shutdown ();
|
||||
S_Shutdown ();
|
||||
IN_Shutdown (); // input is only initialized in Host_Init if we're not dedicated -- kristian
|
||||
IN_Shutdown ();
|
||||
VID_Shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue