From 3b1fb79a85f38ff5a53de03dec8d15ed5abe642e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 21 Jul 2024 04:32:38 +0300 Subject: [PATCH] engine: client: use Host_IsQuakeCompatible instead of checking host.features bit --- engine/client/cl_efx.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/engine/client/cl_efx.c b/engine/client/cl_efx.c index da7f8d5c..32dd092e 100644 --- a/engine/client/cl_efx.c +++ b/engine/client/cl_efx.c @@ -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++ ) {