Browse Source

engine: server: execute maps/<mapname>_unload.cfg on server deactivation.

master
Andrey Akhmichin 9 months ago committed by Alibek Omarov
parent
commit
8b79e49a0f
  1. 3
      engine/server/sv_init.c

3
engine/server/sv_init.c

@ -690,6 +690,9 @@ void SV_DeactivateServer( void ) @@ -690,6 +690,9 @@ void SV_DeactivateServer( void )
if( COM_CheckString( cycle ))
Cbuf_AddTextf( "exec %s\n", cycle );
if( COM_CheckStringEmpty( sv.name ))
Cbuf_AddTextf( "exec maps/%s_unload.cfg\n", sv.name );
if( !svs.initialized || sv.state == ss_dead )
return;

Loading…
Cancel
Save