engine: server: remove unused host struct field

This commit is contained in:
Alibek Omarov 2023-09-24 07:49:09 +03:00
parent 8fb908e3d4
commit 78bc177e05
3 changed files with 1 additions and 4 deletions

View File

@ -360,7 +360,6 @@ typedef struct
typedef struct
{
qboolean initialized; // sv_init has completed
qboolean game_library_loaded; // is game library loaded in SV_InitGame
double timestart; // just for profiling
int maxclients; // server max clients

View File

@ -5130,7 +5130,6 @@ void SV_UnloadProgs( void )
Mod_ResetStudioAPI ();
svs.game_library_loaded = false;
COM_FreeLibrary( svgame.hInstance );
Mem_FreePool( &svgame.mempool );
memset( &svgame, 0, sizeof( svgame ));

View File

@ -706,7 +706,7 @@ qboolean SV_InitGame( void )
{
string dllpath;
if( svs.game_library_loaded )
if( svgame.hInstance )
return true;
// first initialize?
@ -721,7 +721,6 @@ qboolean SV_InitGame( void )
}
// client frames will be allocated in SV_ClientConnect
svs.game_library_loaded = true;
return true;
}