From e90b83849a4f120a8ae0a13ccfd95cb18e72107c Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Fri, 16 Feb 2024 04:50:09 +0500 Subject: [PATCH] engine: server: execute map change config file in singleplayer. --- engine/server/sv_init.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/engine/server/sv_init.c b/engine/server/sv_init.c index bf0ba63f..6d6c6220 100644 --- a/engine/server/sv_init.c +++ b/engine/server/sv_init.c @@ -588,6 +588,7 @@ void SV_ActivateServer( int runPhysics ) byte msg_buf[MAX_INIT_MSG]; sizebuf_t msg; sv_client_t *cl; + const char *cycle; if( !svs.initialized ) return; @@ -674,13 +675,10 @@ void SV_ActivateServer( int runPhysics ) if( sv.ignored_world_decals ) Con_Printf( S_WARN "%i static decals was rejected due buffer overflow\n", sv.ignored_world_decals ); - if( svs.maxclients > 1 ) - { - const char *cycle = Cvar_VariableString( "mapchangecfgfile" ); + cycle = Cvar_VariableString( "mapchangecfgfile" ); - if( COM_CheckString( cycle )) - Cbuf_AddTextf( "exec %s\n", cycle ); - } + if( COM_CheckString( cycle )) + Cbuf_AddTextf( "exec %s\n", cycle ); } /*