mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-23 13:24:13 +00:00
engine: server: execute maps/<mapname>_unload.cfg on server deactivation.
This commit is contained in:
parent
4ea6eba8f2
commit
8b79e49a0f
@ -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…
x
Reference in New Issue
Block a user