mirror of https://github.com/FWGS/xash3d-fwgs
engine: server: execute maps/<mapname>_load.cfg before entities precaching.
This commit is contained in:
parent
6fa654799a
commit
0f7408942a
|
@ -1009,6 +1009,8 @@ qboolean SV_SpawnServer( const char *mapname, const char *startspot, qboolean ba
|
||||||
if( COM_CheckString( cycle ))
|
if( COM_CheckString( cycle ))
|
||||||
Cbuf_AddTextf( "exec %s\n", cycle );
|
Cbuf_AddTextf( "exec %s\n", cycle );
|
||||||
|
|
||||||
|
Cbuf_AddTextf( "exec maps/%s_load.cfg\n", mapname );
|
||||||
|
|
||||||
// let's not have any servers with no name
|
// let's not have any servers with no name
|
||||||
if( !COM_CheckString( hostname.string ))
|
if( !COM_CheckString( hostname.string ))
|
||||||
Cvar_Set( "hostname", svgame.dllFuncs.pfnGetGameDescription ? svgame.dllFuncs.pfnGetGameDescription() : FS_Title( ));
|
Cvar_Set( "hostname", svgame.dllFuncs.pfnGetGameDescription ? svgame.dllFuncs.pfnGetGameDescription() : FS_Title( ));
|
||||||
|
|
Loading…
Reference in New Issue