mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 23:57:57 +00:00
engine: server: allow server unloading for Win32 targets until we figure out the issues with MetaMod
This commit is contained in:
parent
fe407fbe00
commit
f07eea5073
@ -5148,7 +5148,13 @@ qboolean SV_LoadProgs( const char *name )
|
|||||||
edict_t *e;
|
edict_t *e;
|
||||||
|
|
||||||
if( svgame.hInstance )
|
if( svgame.hInstance )
|
||||||
|
{
|
||||||
|
#if XASH_WIN32
|
||||||
|
SV_UnloadProgs();
|
||||||
|
#else // XASH_WIN32
|
||||||
return true;
|
return true;
|
||||||
|
#endif // XASH_WIN32
|
||||||
|
}
|
||||||
|
|
||||||
// fill it in
|
// fill it in
|
||||||
svgame.pmove = &gpMove;
|
svgame.pmove = &gpMove;
|
||||||
|
@ -1090,6 +1090,10 @@ void SV_Shutdown( const char *finalmsg )
|
|||||||
// drop the client if want to load a new map
|
// drop the client if want to load a new map
|
||||||
if( CL_IsPlaybackDemo( ))
|
if( CL_IsPlaybackDemo( ))
|
||||||
CL_Drop();
|
CL_Drop();
|
||||||
|
|
||||||
|
#if XASH_WIN32
|
||||||
|
SV_UnloadProgs();
|
||||||
|
#endif // XASH_WIN32
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1107,6 +1111,9 @@ void SV_Shutdown( const char *finalmsg )
|
|||||||
|
|
||||||
NET_Config( false, false );
|
NET_Config( false, false );
|
||||||
SV_DeactivateServer();
|
SV_DeactivateServer();
|
||||||
|
#if XASH_WIN32
|
||||||
|
SV_UnloadProgs();
|
||||||
|
#endif // XASH_WIN32
|
||||||
CL_Drop();
|
CL_Drop();
|
||||||
|
|
||||||
// free current level
|
// free current level
|
||||||
|
Loading…
Reference in New Issue
Block a user