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
2 changed files with 13 additions and 0 deletions
|
@ -5148,7 +5148,13 @@ qboolean SV_LoadProgs( const char *name )
|
|||
edict_t *e;
|
||||
|
||||
if( svgame.hInstance )
|
||||
{
|
||||
#if XASH_WIN32
|
||||
SV_UnloadProgs();
|
||||
#else // XASH_WIN32
|
||||
return true;
|
||||
#endif // XASH_WIN32
|
||||
}
|
||||
|
||||
// fill it in
|
||||
svgame.pmove = &gpMove;
|
||||
|
|
|
@ -1090,6 +1090,10 @@ void SV_Shutdown( const char *finalmsg )
|
|||
// drop the client if want to load a new map
|
||||
if( CL_IsPlaybackDemo( ))
|
||||
CL_Drop();
|
||||
|
||||
#if XASH_WIN32
|
||||
SV_UnloadProgs();
|
||||
#endif // XASH_WIN32
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -1107,6 +1111,9 @@ void SV_Shutdown( const char *finalmsg )
|
|||
|
||||
NET_Config( false, false );
|
||||
SV_DeactivateServer();
|
||||
#if XASH_WIN32
|
||||
SV_UnloadProgs();
|
||||
#endif // XASH_WIN32
|
||||
CL_Drop();
|
||||
|
||||
// free current level
|
||||
|
|
Loading…
Add table
Reference in a new issue