From c3e186ef7ad711789d6898b0c8e32a12cef24300 Mon Sep 17 00:00:00 2001 From: Mark Olsen Date: Sun, 8 Feb 2009 14:31:11 +0000 Subject: [PATCH] Spike is ordering me to break things again. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3121 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/sw/d_part.c | 1 + engine/sw/r_local.h | 2 +- engine/sw/r_main.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/sw/d_part.c b/engine/sw/d_part.c index 0b50b2edf..570f94be8 100644 --- a/engine/sw/d_part.c +++ b/engine/sw/d_part.c @@ -21,6 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "quakedef.h" #include "d_local.h" +#include "r_local.h" vec3_t r_pright, r_pup, r_ppn; diff --git a/engine/sw/r_local.h b/engine/sw/r_local.h index 0ee08ab60..d25701adc 100644 --- a/engine/sw/r_local.h +++ b/engine/sw/r_local.h @@ -316,7 +316,7 @@ void SWR_NetGraph (void); qbyte *SWMod_LeafPVS (model_t *model, mleaf_t *leaf, qbyte *buffer); -void D_DrawSparkTrans (struct particle_s *pparticle, vec3_t src, vec3_t dest, int blendmode); +void D_DrawSparkTrans (vec3_t src, vec3_t dest, float palpha, unsigned int pcolour, blendmode_t blendmode); void D_Shutdown (void); diff --git a/engine/sw/r_main.c b/engine/sw/r_main.c index 17514c2be..7bd538e55 100644 --- a/engine/sw/r_main.c +++ b/engine/sw/r_main.c @@ -688,7 +688,7 @@ void SWR_DrawBeam(entity_t *e) for (; len>=0; len--) { VectorAdd(o1, dir, o2); - D_DrawSparkTrans (o1, o2, 1, 0); + D_DrawSparkTrans (o1, o2, 1, 0, BM_BLEND); VectorCopy(o2, o1); } }