From 1778f3fb8cabe7400011c84331018b0ebf6a44b1 Mon Sep 17 00:00:00 2001 From: Anthony Pesch Date: Sat, 1 Feb 2014 09:50:22 -0800 Subject: restart the renderer after the hunk mark has been set --- src/server/sv_init.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'src/server/sv_init.c') diff --git a/src/server/sv_init.c b/src/server/sv_init.c index 71e5f717..30fd3936 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -452,11 +452,6 @@ void SV_SpawnServer( char *server, qboolean killBots ) { // clear the whole hunk because we're (re)loading the server Hunk_Clear(); -#ifndef DEDICATED - // Restart renderer - CL_StartHunkUsers( qtrue ); -#endif - // clear collision map data CM_ClearMap(); @@ -608,6 +603,14 @@ void SV_SpawnServer( char *server, qboolean killBots ) { Hunk_SetMark(); +#ifndef DEDICATED + if ( com_dedicated->integer ) { + // restart renderer in order to show console for dedicated servers + // launched through the regular binary + CL_StartHunkUsers( qtrue ); + } +#endif + Com_Printf ("-----------------------------------\n"); } -- cgit