Skip to content

Commit

Permalink
engine: server: wire use_large_lightmaps gameinfo.txt key to host.fea…
Browse files Browse the repository at this point in the history
…tures initialization
  • Loading branch information
a1batross committed Oct 27, 2023
1 parent 406432b commit 8e7d300
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engine/server/sv_phys.c
Original file line number Diff line number Diff line change
Expand Up @@ -2129,6 +2129,9 @@ qboolean SV_InitPhysicsAPI( void )
{
static PHYSICAPI pPhysIface;

if( GI->use_large_lightmaps )
SetBits( host.features, ENGINE_LARGE_LIGHTMAPS );

pPhysIface = (PHYSICAPI)COM_GetProcAddress( svgame.hInstance, "Server_GetPhysicsInterface" );
if( pPhysIface )
{
Expand All @@ -2140,7 +2143,6 @@ qboolean SV_InitPhysicsAPI( void )
{
// grab common engine features (it will be shared across the network)
host.features = svgame.physFuncs.SV_CheckFeatures();
Host_PrintEngineFeatures ();
}
return true;
}
Expand All @@ -2151,6 +2153,8 @@ qboolean SV_InitPhysicsAPI( void )
return false; // just tell user about problems
}

Host_PrintEngineFeatures();

// physic interface is missed
return true;
}

0 comments on commit 8e7d300

Please sign in to comment.