From 4ea6eba8f2ceda3be8f523a2ac1c27d6131efee2 Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Fri, 16 Feb 2024 08:29:52 +0500 Subject: [PATCH] engine: server: execute maps/_load.cfg before entities precaching. --- engine/server/sv_init.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/server/sv_init.c b/engine/server/sv_init.c index 8c276736..2591f7b7 100644 --- a/engine/server/sv_init.c +++ b/engine/server/sv_init.c @@ -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( ));