engine: print all supported and enabled features
This commit is contained in:
parent
498ec6b4f1
commit
96f7f5457d
4 changed files with 22 additions and 17 deletions
|
@ -907,7 +907,7 @@ void CL_ParseServerData( sizebuf_t *msg, qboolean legacy )
|
||||||
host.features &= legacy ? ENGINE_LEGACY_FEATURES_MASK : ENGINE_FEATURES_MASK;
|
host.features &= legacy ? ENGINE_LEGACY_FEATURES_MASK : ENGINE_FEATURES_MASK;
|
||||||
|
|
||||||
if( !Host_IsLocalGame( ))
|
if( !Host_IsLocalGame( ))
|
||||||
Host_PrintEngineFeatures();
|
Host_PrintEngineFeatures( host.features );
|
||||||
|
|
||||||
if( !legacy )
|
if( !legacy )
|
||||||
{
|
{
|
||||||
|
|
|
@ -552,7 +552,7 @@ qboolean Host_IsLocalGame( void );
|
||||||
qboolean Host_IsLocalClient( void );
|
qboolean Host_IsLocalClient( void );
|
||||||
void Host_ShutdownServer( void );
|
void Host_ShutdownServer( void );
|
||||||
void Host_Error( const char *error, ... ) _format( 1 );
|
void Host_Error( const char *error, ... ) _format( 1 );
|
||||||
void Host_PrintEngineFeatures( void );
|
void Host_PrintEngineFeatures( int features );
|
||||||
void Host_Frame( float time );
|
void Host_Frame( float time );
|
||||||
void Host_InitDecals( void );
|
void Host_InitDecals( void );
|
||||||
void Host_Credits( void );
|
void Host_Credits( void );
|
||||||
|
|
|
@ -190,22 +190,27 @@ void Host_ShutdownServer( void )
|
||||||
Host_PrintEngineFeatures
|
Host_PrintEngineFeatures
|
||||||
================
|
================
|
||||||
*/
|
*/
|
||||||
void Host_PrintEngineFeatures( void )
|
void Host_PrintEngineFeatures( int features )
|
||||||
{
|
{
|
||||||
if( FBitSet( host.features, ENGINE_WRITE_LARGE_COORD ))
|
const char *features_str[] =
|
||||||
Con_Reportf( "^3EXT:^7 big world support enabled\n" );
|
{
|
||||||
|
"Big World Support",
|
||||||
|
"Quake Compatibility",
|
||||||
|
"Deluxemap Support",
|
||||||
|
"Improved MOVETYPE_PUSH",
|
||||||
|
"Large Lightmaps",
|
||||||
|
"Stupid Quake Bug Compensation",
|
||||||
|
"Improved Trace Line",
|
||||||
|
"Studio MOVETYPE_STEP Lerping",
|
||||||
|
"Linear Gamma Space"
|
||||||
|
};
|
||||||
|
int i;
|
||||||
|
|
||||||
if( FBitSet( host.features, ENGINE_LOAD_DELUXEDATA ))
|
for( i = 0; i < ARRAYSIZE( features_str ); i++ )
|
||||||
Con_Reportf( "^3EXT:^7 deluxemap support enabled\n" );
|
{
|
||||||
|
if( FBitSet( features, BIT( i )))
|
||||||
if( FBitSet( host.features, ENGINE_PHYSICS_PUSHER_EXT ))
|
Con_Reportf( "^3EXT:^7 %s is enabled\n", features_str[i] );
|
||||||
Con_Reportf( "^3EXT:^7 Improved MOVETYPE_PUSH is used\n" );
|
}
|
||||||
|
|
||||||
if( FBitSet( host.features, ENGINE_LARGE_LIGHTMAPS ))
|
|
||||||
Con_Reportf( "^3EXT:^7 Large lightmaps enabled\n" );
|
|
||||||
|
|
||||||
if( FBitSet( host.features, ENGINE_COMPENSATE_QUAKE_BUG ))
|
|
||||||
Con_Reportf( "^3EXT:^7 Compensate quake bug enabled\n" );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -2140,7 +2140,7 @@ qboolean SV_InitPhysicsAPI( void )
|
||||||
{
|
{
|
||||||
// grab common engine features (it will be shared across the network)
|
// grab common engine features (it will be shared across the network)
|
||||||
host.features = svgame.physFuncs.SV_CheckFeatures() & ENGINE_FEATURES_MASK;
|
host.features = svgame.physFuncs.SV_CheckFeatures() & ENGINE_FEATURES_MASK;
|
||||||
Host_PrintEngineFeatures ();
|
Host_PrintEngineFeatures( host.features );
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue