diff options
author | Andrey Nazarov <skuller@skuller.net> | 2008-10-01 13:13:25 +0000 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2008-10-01 13:13:25 +0000 |
commit | 3544752417431e55fab8226318e985d1b97cfb32 (patch) | |
tree | 79b1b9a89b2fa850248ac38f38c7b9d3fecf2d93 /source/sv_init.c | |
parent | 328163a3d1f53e574c2ca312b3f61552e102e984 (diff) |
Stubbed out more client stuff from dedicated server build.
Dedicated server now properly handles `wait' console command.
Diffstat (limited to 'source/sv_init.c')
-rw-r--r-- | source/sv_init.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source/sv_init.c b/source/sv_init.c index 8e22065..2164859 100644 --- a/source/sv_init.c +++ b/source/sv_init.c @@ -158,9 +158,11 @@ void SV_InitGame( qboolean ismvd ){ // cause any connected clients to reconnect SV_Shutdown( "Server restarted\n", KILL_RESTART ); } else { +#if USE_CLIENT // make sure the client is down CL_Disconnect( ERR_SILENT, NULL ); SCR_BeginLoadingPlaque(); +#endif CM_FreeMap( &sv.cm ); memset( &sv, 0, sizeof( sv ) ); @@ -184,7 +186,7 @@ void SV_InitGame( qboolean ismvd ){ // dedicated servers can't be single player and are usually DM // so unless they explicity set coop, force it to deathmatch - if( dedicated->integer ) { + if( Com_IsDedicated() ) { if( !Cvar_VariableInteger( "coop" ) ) Cvar_Set( "deathmatch", "1" ); } @@ -348,7 +350,9 @@ void SV_Map (const char *levelstring, qboolean restart) { sv.state = ss_loading; } +#if USE_CLIENT SCR_BeginLoadingPlaque(); // for local system +#endif SV_BroadcastCommand( "changing map=%s\n", level ); SV_SendClientMessages(); SV_SendAsyncPackets(); |