Skip to content

Commit

Permalink
engine: server: remove unused host struct field
Browse files Browse the repository at this point in the history
  • Loading branch information
a1batross committed Sep 24, 2023
1 parent abebaf0 commit 3bd729b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion engine/server/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion engine/server/sv_game.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ));
Expand Down
3 changes: 1 addition & 2 deletions engine/server/sv_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ qboolean SV_InitGame( void )
{
string dllpath;

if( svs.game_library_loaded )
if( svgame.hInstance )
return true;

// first initialize?
Expand All @@ -721,7 +721,6 @@ qboolean SV_InitGame( void )
}

// client frames will be allocated in SV_ClientConnect
svs.game_library_loaded = true;
return true;
}

Expand Down

0 comments on commit 3bd729b

Please sign in to comment.