From 8e7d300d1e597e36ff5e874be9dd4e6e514528f5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Fri, 27 Oct 2023 00:07:34 +0300 Subject: [PATCH] engine: server: wire use_large_lightmaps gameinfo.txt key to host.features initialization --- engine/server/sv_phys.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/server/sv_phys.c b/engine/server/sv_phys.c index 912932da87..c80ce31d85 100644 --- a/engine/server/sv_phys.c +++ b/engine/server/sv_phys.c @@ -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 ) { @@ -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; } @@ -2151,6 +2153,8 @@ qboolean SV_InitPhysicsAPI( void ) return false; // just tell user about problems } + Host_PrintEngineFeatures(); + // physic interface is missed return true; }