Browse Source

engine: server: remove unused host struct field

pull/2/head
Alibek Omarov 1 year ago
parent
commit
78bc177e05
  1. 1
      engine/server/server.h
  2. 1
      engine/server/sv_game.c
  3. 3
      engine/server/sv_init.c

1
engine/server/server.h

@ -360,7 +360,6 @@ typedef struct @@ -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

1
engine/server/sv_game.c

@ -5130,7 +5130,6 @@ void SV_UnloadProgs( void ) @@ -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 ));

3
engine/server/sv_init.c

@ -706,7 +706,7 @@ qboolean SV_InitGame( void ) @@ -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 ) @@ -721,7 +721,6 @@ qboolean SV_InitGame( void )
}
// client frames will be allocated in SV_ClientConnect
svs.game_library_loaded = true;
return true;
}

Loading…
Cancel
Save