2
0
mirror of https://github.com/FWGS/xash3d-fwgs synced 2025-01-14 20:40:27 +01:00

engine: client: use Host_IsQuakeCompatible instead of checking host.features bit

This commit is contained in:
Alibek Omarov 2024-07-21 04:32:38 +03:00
parent 0f8f35b415
commit 3b1fb79a85

View File

@ -1106,9 +1106,7 @@ void GAME_EXPORT R_ParticleExplosion2( const vec3_t org, int colorStart, int col
int colorMod = 0, packedColor;
particle_t *p;
if( FBitSet( host.features, ENGINE_QUAKE_COMPATIBLE ))
packedColor = 255; // use old code for blob particles
else packedColor = 0;
packedColor = Host_IsQuakeCompatible( ) ? 255 : 0; // use old code for blob particles
for( i = 0; i < 512; i++ )
{
@ -1141,9 +1139,7 @@ void GAME_EXPORT R_BlobExplosion( const vec3_t org )
particle_t *p;
int i, j, packedColor;
if( FBitSet( host.features, ENGINE_QUAKE_COMPATIBLE ))
packedColor = 255; // use old code for blob particles
else packedColor = 0;
packedColor = Host_IsQuakeCompatible( ) ? 255 : 0; // use old code for blob particles
for( i = 0; i < 1024; i++ )
{