]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_particles.c
fix a couple enum mixed with int warnings
[xonotic/darkplaces.git] / cl_particles.c
index 6151057254c61c63e6de68f2b7793ca1ba2a57cb..5b1e78cd9f40d361262355692e39ece61aa85d08 100644 (file)
@@ -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: