From: havoc Date: Thu, 18 Feb 2010 06:10:03 +0000 (+0000) Subject: fix a couple enum mixed with int warnings X-Git-Tag: xonotic-v0.1.0preview~230^2~488 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d7ed34c18e0b6c5139faf743b613a473d419ea27;p=xonotic%2Fdarkplaces.git fix a couple enum mixed with int warnings git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9981 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 61510572..5b1e78cd 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -2437,7 +2437,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh { p = cl.particles + surfacelist[surfacelistindex]; - blendmode = p->blendmode; + blendmode = (pblend_t)p->blendmode; switch (blendmode) { @@ -2596,7 +2596,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh if (blendmode != p->blendmode) { - blendmode = p->blendmode; + blendmode = (pblend_t)p->blendmode; switch(blendmode) { case PBLEND_ALPHA: