Skip to content

Commit

Permalink
Merge pull request #35 from inolen/no_renderer_restart
Browse files Browse the repository at this point in the history
don't restart renderer in SV_SpawnServer unless client running dedicated
  • Loading branch information
zturtleman committed Feb 2, 2014
2 parents aedb151 + 278d753 commit d8e42cf
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions code/server/sv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,11 +422,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();

Expand Down Expand Up @@ -614,6 +609,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");
}

Expand Down

0 comments on commit d8e42cf

Please sign in to comment.