mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 09:10:54 +00:00
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
1 changed files with 10 additions and 9 deletions
11
Quake/host.c
11
Quake/host.c
|
@ -369,12 +369,14 @@ void SV_BroadcastPrintf (const char *fmt, ...)
|
||||||
va_end (argptr);
|
va_end (argptr);
|
||||||
|
|
||||||
for (i = 0; i < svs.maxclients; i++)
|
for (i = 0; i < svs.maxclients; i++)
|
||||||
|
{
|
||||||
if (svs.clients[i].active && svs.clients[i].spawned)
|
if (svs.clients[i].active && svs.clients[i].spawned)
|
||||||
{
|
{
|
||||||
MSG_WriteByte (&svs.clients[i].message, svc_print);
|
MSG_WriteByte (&svs.clients[i].message, svc_print);
|
||||||
MSG_WriteString (&svs.clients[i].message, string);
|
MSG_WriteString (&svs.clients[i].message, string);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
=================
|
=================
|
||||||
|
@ -525,7 +527,7 @@ void Host_ShutdownServer(qboolean crash)
|
||||||
//
|
//
|
||||||
// clear structures
|
// 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));
|
memset (svs.clients, 0, svs.maxclientslimit*sizeof(client_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -810,8 +812,7 @@ void Host_Init (void)
|
||||||
{
|
{
|
||||||
if (standard_quake)
|
if (standard_quake)
|
||||||
minimum_memory = MINIMUM_MEMORY;
|
minimum_memory = MINIMUM_MEMORY;
|
||||||
else
|
else minimum_memory = MINIMUM_MEMORY_LEVELPAK;
|
||||||
minimum_memory = MINIMUM_MEMORY_LEVELPAK;
|
|
||||||
|
|
||||||
if (COM_CheckParm ("-minmemory"))
|
if (COM_CheckParm ("-minmemory"))
|
||||||
host_parms->memsize = minimum_memory;
|
host_parms->memsize = minimum_memory;
|
||||||
|
@ -856,7 +857,7 @@ void Host_Init (void)
|
||||||
ExtraMaps_Init (); //johnfitz
|
ExtraMaps_Init (); //johnfitz
|
||||||
Modlist_Init (); //johnfitz
|
Modlist_Init (); //johnfitz
|
||||||
VID_Init ();
|
VID_Init ();
|
||||||
IN_Init (); // moved here, SDL inits the input system with the video system -- kristian
|
IN_Init ();
|
||||||
TexMgr_Init (); //johnfitz
|
TexMgr_Init (); //johnfitz
|
||||||
Draw_Init ();
|
Draw_Init ();
|
||||||
SCR_Init ();
|
SCR_Init ();
|
||||||
|
@ -926,7 +927,7 @@ void Host_Shutdown(void)
|
||||||
BGM_Shutdown();
|
BGM_Shutdown();
|
||||||
CDAudio_Shutdown ();
|
CDAudio_Shutdown ();
|
||||||
S_Shutdown ();
|
S_Shutdown ();
|
||||||
IN_Shutdown (); // input is only initialized in Host_Init if we're not dedicated -- kristian
|
IN_Shutdown ();
|
||||||
VID_Shutdown();
|
VID_Shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue