From a50ea929d63b48779adcd27309f890a2f5ec1ed8 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 28 Mar 2026 18:44:50 +0500 Subject: [PATCH] engine: fix a typo in R_Blood, fix a typo in pt_4x_slowgrav --- common/q_client.h | 2 +- engine/client/cl_efx.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/common/q_client.h b/common/q_client.h index 1528ce6e..f4644867 100644 --- a/common/q_client.h +++ b/common/q_client.h @@ -84,7 +84,7 @@ typedef enum { pt_static, pt_grav, pt_slowgrav, pt_fire, pt_explode, pt_explode2, pt_blob, pt_blob2, // added in HL - pr_4x_slowgrav, // 4 times faster than pt_slowgrav + pt_4x_slowgrav, // 4 times faster than pt_slowgrav pt_8x_slowgrav, // 8 times faster than pt_slowgrav pt_custom, // will call think function from particle } ptype_t; diff --git a/engine/client/cl_efx.c b/engine/client/cl_efx.c index 7a248674..588b441b 100644 --- a/engine/client/cl_efx.c +++ b/engine/client/cl_efx.c @@ -1232,7 +1232,7 @@ void GAME_EXPORT R_Blood( const vec3_t org, const vec3_t ndir, int pcolor, int s p->die = cl.time + 1.5f; p->color = pcolor + COM_RandomLong( 0, 9 ); - p->type = pr_4x_slowgrav; + p->type = pt_8x_slowgrav; VectorAddScalar( pos, COM_RandomFloat( -1.0f, 1.0f ), p->org ); VectorScale( vec, pspeed, p->vel ); @@ -1284,7 +1284,7 @@ void GAME_EXPORT R_BloodStream( const vec3_t org, const vec3_t ndir, int pcolor, p->die = cl.time + 3.0f; p->color = pcolor + COM_RandomLong( 0, 9 ); - p->type = pr_4x_slowgrav; + p->type = pt_4x_slowgrav; VectorCopy( org, p->org ); VectorCopy( dir, p->vel ); @@ -1306,7 +1306,7 @@ void GAME_EXPORT R_BloodStream( const vec3_t org, const vec3_t ndir, int pcolor, p->die = cl.time + 3.0f; p->color = pcolor + COM_RandomLong( 0, 9 ); - p->type = pr_4x_slowgrav; + p->type = pt_4x_slowgrav; p->org[0] = org[0] + COM_RandomFloat( -1.0f, 1.0f ); p->org[1] = org[1] + COM_RandomFloat( -1.0f, 1.0f ); @@ -2220,7 +2220,7 @@ void CL_ThinkParticle( double frametime, particle_t *p ) case pt_8x_slowgrav: p->vel[2] -= grav * 8.0f; break; - case pr_4x_slowgrav: + case pt_4x_slowgrav: p->vel[2] -= grav * 4.0f; break; case pt_custom: