mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-23 21:34:15 +00:00
engine: host: better engine features print
This commit is contained in:
parent
ce73838f1b
commit
f2584dcb9d
@ -192,24 +192,29 @@ Host_PrintEngineFeatures
|
|||||||
*/
|
*/
|
||||||
static void Host_PrintEngineFeatures( int features )
|
static void Host_PrintEngineFeatures( int features )
|
||||||
{
|
{
|
||||||
const char *features_str[] =
|
struct
|
||||||
{
|
{
|
||||||
"Big World Support",
|
uint32_t mask;
|
||||||
"Quake Compatibility",
|
const char *msg;
|
||||||
"Deluxemap Support",
|
} features_str[] =
|
||||||
"Improved MOVETYPE_PUSH",
|
{
|
||||||
"Large Lightmaps",
|
{ ENGINE_WRITE_LARGE_COORD, "Big World Support" },
|
||||||
"Stupid Quake Bug Compensation",
|
{ ENGINE_QUAKE_COMPATIBLE, "Quake Compatibility" },
|
||||||
"Improved Trace Line",
|
{ ENGINE_LOAD_DELUXEDATA, "Deluxemap Support" },
|
||||||
"Studio MOVETYPE_STEP Lerping",
|
{ ENGINE_PHYSICS_PUSHER_EXT, "Improved MOVETYPE_PUSH" },
|
||||||
"Linear Gamma Space"
|
{ ENGINE_LARGE_LIGHTMAPS, "Large Lightmaps" },
|
||||||
|
{ ENGINE_COMPENSATE_QUAKE_BUG, "Stupid Quake Bug Compensation" },
|
||||||
|
{ ENGINE_IMPROVED_LINETRACE, "Improved Trace Line" },
|
||||||
|
{ ENGINE_COMPUTE_STUDIO_LERP, "Studio MOVETYPE_STEP Lerping" },
|
||||||
|
{ ENGINE_LINEAR_GAMMA_SPACE, "Linear Gamma Space" },
|
||||||
|
{ ENGINE_STEP_POSHISTORY_LERP, "MOVETYPE_STEP Position History Based Lerping" },
|
||||||
};
|
};
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for( i = 0; i < ARRAYSIZE( features_str ); i++ )
|
for( i = 0; i < ARRAYSIZE( features_str ); i++ )
|
||||||
{
|
{
|
||||||
if( FBitSet( features, BIT( i )))
|
if( FBitSet( features, features_str[i].mask ))
|
||||||
Con_Reportf( "^3EXT:^7 %s is enabled\n", features_str[i] );
|
Con_Reportf( "^3EXT:^7 %s is enabled\n", features_str[i].msg );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user