diff --git a/engine/server/server.h b/engine/server/server.h index 207705341..7667381a0 100644 --- a/engine/server/server.h +++ b/engine/server/server.h @@ -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 diff --git a/engine/server/sv_game.c b/engine/server/sv_game.c index b5e7d8be4..a9f34356c 100644 --- a/engine/server/sv_game.c +++ b/engine/server/sv_game.c @@ -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 )); diff --git a/engine/server/sv_init.c b/engine/server/sv_init.c index 87ae350e1..d4eebd62b 100644 --- a/engine/server/sv_init.c +++ b/engine/server/sv_init.c @@ -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; }