mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: fix a typo in R_Blood, fix a typo in pt_4x_slowgrav
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user