mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-02-02 10:14:42 +00:00
engine: server: execute map change config file in singleplayer.
This commit is contained in:
parent
d517b9717a
commit
e90b83849a
@ -588,6 +588,7 @@ void SV_ActivateServer( int runPhysics )
|
|||||||
byte msg_buf[MAX_INIT_MSG];
|
byte msg_buf[MAX_INIT_MSG];
|
||||||
sizebuf_t msg;
|
sizebuf_t msg;
|
||||||
sv_client_t *cl;
|
sv_client_t *cl;
|
||||||
|
const char *cycle;
|
||||||
|
|
||||||
if( !svs.initialized )
|
if( !svs.initialized )
|
||||||
return;
|
return;
|
||||||
@ -674,14 +675,11 @@ void SV_ActivateServer( int runPhysics )
|
|||||||
if( sv.ignored_world_decals )
|
if( sv.ignored_world_decals )
|
||||||
Con_Printf( S_WARN "%i static decals was rejected due buffer overflow\n", 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 )
|
cycle = Cvar_VariableString( "mapchangecfgfile" );
|
||||||
{
|
|
||||||
const char *cycle = Cvar_VariableString( "mapchangecfgfile" );
|
|
||||||
|
|
||||||
if( COM_CheckString( cycle ))
|
if( COM_CheckString( cycle ))
|
||||||
Cbuf_AddTextf( "exec %s\n", cycle );
|
Cbuf_AddTextf( "exec %s\n", cycle );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
================
|
================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user