engine: add mask to sanitize possible engine features bits

This commit is contained in:
Alibek Omarov
2023-12-17 17:29:11 +03:00
parent 643bec4071
commit d41a80bc2c
3 changed files with 14 additions and 1 deletions

View File

@@ -2139,7 +2139,7 @@ qboolean SV_InitPhysicsAPI( void )
if( svgame.physFuncs.SV_CheckFeatures != NULL )
{
// grab common engine features (it will be shared across the network)
host.features = svgame.physFuncs.SV_CheckFeatures();
host.features = svgame.physFuncs.SV_CheckFeatures() & ENGINE_FEATURES_MASK;
Host_PrintEngineFeatures ();
}
return true;