From 27aea7b7ba0b2ebeae40b390081c8aaa7a2f7acc Mon Sep 17 00:00:00 2001 From: Spoike Date: Mon, 22 Nov 2004 22:19:12 +0000 Subject: [PATCH] fix for parsetent - added the extra particle types. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@503 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/r_part.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/client/r_part.c b/engine/client/r_part.c index e397ef9b9..03e757480 100644 --- a/engine/client/r_part.c +++ b/engine/client/r_part.c @@ -47,7 +47,9 @@ int pt_explosion, pt_teleportsplash, pt_blasterparticles, pt_superbullet, - pt_bullet; + pt_bullet, + pt_spark, + pt_plasma; int pe_default, pe_size2, @@ -928,6 +930,9 @@ void R_InitParticles (void) pe_default = AllocateParticleType("pe_default"); pe_size2 = AllocateParticleType("pe_size2"); pe_size3 = AllocateParticleType("pe_size3"); + + pt_spark = AllocateParticleType("pe_spark"); + pt_plasma = AllocateParticleType("pe_plasma"); } @@ -2394,6 +2399,8 @@ void GL_DrawTrifanParticle(particle_t *p, part_type_t *type) vec3_t v; float scale; + glEnd(); + if (lasttype != type) { lasttype = type; @@ -2406,7 +2413,6 @@ void GL_DrawTrifanParticle(particle_t *p, part_type_t *type) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glShadeModel(GL_SMOOTH); } - glEnd(); scale = (p->org[0] - r_origin[0])*vpn[0] + (p->org[1] - r_origin[1])*vpn[1] + (p->org[2] - r_origin[2])*vpn[2];