]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fix a couple enum mixed with int warnings
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Feb 2010 06:10:03 +0000 (06:10 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 18 Feb 2010 06:10:03 +0000 (06:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9981 d7cf8633-e32d-0410-b094-e92efae38249

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: