engine: fix a typo in R_Blood, fix a typo in pt_4x_slowgrav

This commit is contained in:
Alibek Omarov
2026-03-28 18:44:50 +05:00
parent d5b481ac9d
commit a50ea929d6
2 changed files with 5 additions and 5 deletions

View File

@@ -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;

View File

@@ -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: