summaryrefslogtreecommitdiff
path: root/source/sv_main.c
diff options
context:
space:
mode:
authorAndrey Nazarov <skuller@skuller.net>2007-09-16 19:57:58 +0000
committerAndrey Nazarov <skuller@skuller.net>2007-09-16 19:57:58 +0000
commite68f49dd90d1650880d7124ec0a909b49805a83c (patch)
treefb50637055786c87caf262f1d58b1fb8ebe6025c /source/sv_main.c
parenta9eefaa6dd9de85d28626fd2f141a38a3148caed (diff)
MVD client now makes sure mapfile exists before doing CM_LoadMap.
Fixed MVD client not being killed in case of Com_Error resulting in a crash. Made server HTML output pass formal validation. Fixed COM_AppendExtension. Pack usercmd button mask into 3 bits instead of 8. Bumped minor Q2PRO protocol version.
Diffstat (limited to 'source/sv_main.c')
-rw-r--r--source/sv_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/sv_main.c b/source/sv_main.c
index b49453c..e85757a 100644
--- a/source/sv_main.c
+++ b/source/sv_main.c
@@ -1303,6 +1303,10 @@ static qboolean SV_CheckPaused( void ) {
client_t *client;
sv_paused->integer = 0;
+ if( sv.state == ss_broadcast ) {
+ cl_paused->integer = 0;
+ return qfalse; // never pause in MVD client mode
+ }
if( cl_paused->integer ) {
FOR_EACH_CLIENT( client ) {
if( client->state != cs_spawned ) {
@@ -1778,6 +1782,7 @@ void SV_Shutdown( const char *finalmsg, killtype_t type ) {
Cvar_Set( "sv_paused", "0" );
if( !svs.initialized ) {
+ MVD_GameShutdown(); // make sure MVD client is down
return;
}