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); } }