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(); }