Browse Source

engine: server: execute maps/<mapname>_load.cfg before entities precaching.

master
Andrey Akhmichin 9 months ago committed by Alibek Omarov
parent
commit
4ea6eba8f2
  1. 2
      engine/server/sv_init.c

2
engine/server/sv_init.c

@ -1009,6 +1009,8 @@ qboolean SV_SpawnServer( const char *mapname, const char *startspot, qboolean ba @@ -1009,6 +1009,8 @@ qboolean SV_SpawnServer( const char *mapname, const char *startspot, qboolean ba
if( COM_CheckString( 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
if( !COM_CheckString( hostname.string ))
Cvar_Set( "hostname", svgame.dllFuncs.pfnGetGameDescription ? svgame.dllFuncs.pfnGetGameDescription() : FS_Title( ));

Loading…
Cancel
Save