mirror of
https://github.com/ioquake/ioq3.git
synced 2024-11-13 00:24:10 +00:00
Merge pull request #35 from inolen/no_renderer_restart
don't restart renderer in SV_SpawnServer unless client running dedicated
This commit is contained in:
commit
d8e42cf02f
1 changed files with 8 additions and 5 deletions
|
@ -422,11 +422,6 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
|
||||||
// clear the whole hunk because we're (re)loading the server
|
// clear the whole hunk because we're (re)loading the server
|
||||||
Hunk_Clear();
|
Hunk_Clear();
|
||||||
|
|
||||||
#ifndef DEDICATED
|
|
||||||
// Restart renderer
|
|
||||||
CL_StartHunkUsers( qtrue );
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// clear collision map data
|
// clear collision map data
|
||||||
CM_ClearMap();
|
CM_ClearMap();
|
||||||
|
|
||||||
|
@ -614,6 +609,14 @@ void SV_SpawnServer( char *server, qboolean killBots ) {
|
||||||
|
|
||||||
Hunk_SetMark();
|
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");
|
Com_Printf ("-----------------------------------\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue