diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/sv_ccmds.c | 2 | ||||
-rw-r--r-- | src/server/sv_game.c | 2 | ||||
-rw-r--r-- | src/server/sv_init.c | 5 | ||||
-rw-r--r-- | src/server/sv_main.c | 24 |
4 files changed, 14 insertions, 19 deletions
diff --git a/src/server/sv_ccmds.c b/src/server/sv_ccmds.c index d0b5956b..d73f58be 100644 --- a/src/server/sv_ccmds.c +++ b/src/server/sv_ccmds.c @@ -304,7 +304,7 @@ static void SV_MapRestart_f( void ) { // this generally shouldn't happen, because the client // was connected before the level change SV_DropClient( client, denied ); - Com_Printf( "SV_MapRestart_f(%d): dropped client %i - denied!\n", delay, i ); // bk010125 + Com_Printf( "SV_MapRestart_f(%d): dropped client %i - denied!\n", delay, i ); continue; } diff --git a/src/server/sv_game.c b/src/server/sv_game.c index 1f56ed01..df13500d 100644 --- a/src/server/sv_game.c +++ b/src/server/sv_game.c @@ -556,7 +556,7 @@ void SV_RestartGameProgs( void ) { // do a restart instead of a free gvm = VM_Restart( gvm ); - if ( !gvm ) { // bk001212 - as done below + if ( !gvm ) { Com_Error( ERR_FATAL, "VM_Restart on game failed" ); } diff --git a/src/server/sv_init.c b/src/server/sv_init.c index 2106816c..1496f776 100644 --- a/src/server/sv_init.c +++ b/src/server/sv_init.c @@ -416,6 +416,11 @@ 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(); diff --git a/src/server/sv_main.c b/src/server/sv_main.c index b4552470..62973d9c 100644 --- a/src/server/sv_main.c +++ b/src/server/sv_main.c @@ -25,7 +25,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA serverStatic_t svs; // persistant server info server_t sv; // local server -vm_t *gvm = NULL; // game virtual machine // bk001212 init +vm_t *gvm = NULL; // game virtual machine cvar_t *sv_fps; // time rate for running non-clients cvar_t *sv_timeout; // seconds without any message @@ -350,15 +350,6 @@ void SVC_Status( netadr_t from ) { // to prevent timed spoofed reply packets that add ghost servers Info_SetValueForKey( infostring, "challenge", Cmd_Argv(1) ); - // add "demo" to the sv_keywords if restricted - if ( Cvar_VariableValue( "fs_restrict" ) ) { - char keywords[MAX_INFO_STRING]; - - Com_sprintf( keywords, sizeof( keywords ), "demo %s", - Info_ValueForKey( infostring, "sv_keywords" ) ); - Info_SetValueForKey( infostring, "sv_keywords", keywords ); - } - status[0] = 0; statusLength = 0; @@ -783,13 +774,12 @@ void SV_Frame( int msec ) { if (!com_sv_running->integer) { - if(com_dedicated->integer) - { - // Block indefinitely until something interesting happens - // on STDIN. - NET_Sleep(-1); - } - + // Running as a server, but no map loaded +#ifdef DEDICATED + // Block until something interesting happens + NET_Sleep(-1); +#endif + return; } |