From b3d2bb688405a1c0e388feab2b6bbdbfb423ddba Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 6 Nov 2012 08:56:09 +0000 Subject: [PATCH] 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 --- Quake/host.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/Quake/host.c b/Quake/host.c index e0f9e302..22f18028 100644 --- a/Quake/host.c +++ b/Quake/host.c @@ -368,12 +368,14 @@ void SV_BroadcastPrintf (const char *fmt, ...) q_vsnprintf (string, sizeof(string), fmt, argptr); va_end (argptr); - for (i=0 ; iactive) continue; @@ -518,14 +520,14 @@ void Host_ShutdownServer(qboolean crash) if (count) Con_Printf("Host_ShutdownServer: NET_SendToAll failed for %u clients\n", count); - for (i=0, host_client = svs.clients ; iactive) SV_DropClient(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)); } @@ -792,7 +794,7 @@ void Host_Frame (float time) timecount = 0; timetotal = 0; c = 0; - for (i=0 ; imemsize = 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(); }