]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
someone broke R_CompleteLightPoint, fix this call
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 21 Nov 2010 12:25:55 +0000 (12:25 +0000)
committerRudolf Polzer <divverent@alientrap.org>
Sun, 21 Nov 2010 13:10:15 +0000 (14:10 +0100)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10620 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e4e9ebace60585c6cfb51cafda868761e8d21458

cl_particles.c

index d0991e531e853afa28632924c3cd11a05e109b45..679778a5d455f2fd8bbb3e11ac49d375a36e5752 100644 (file)
@@ -2532,7 +2532,7 @@ void R_DrawParticle_TransparentCallback(const entity_render_t *ent, const rtligh
                        // note: lighting is not cheap!
                        if (particletype[p->typeindex].lighting)
                        {
-                               R_CompleteLightPoint(ambient, diffuse, diffusenormal, p->org, true, false);
+                               R_CompleteLightPoint(ambient, diffuse, diffusenormal, p->org, LP_LIGHTMAP | LP_RTWORLD | LP_DYNLIGHT);
                                c4f[0] *= (ambient[0] + 0.5 * diffuse[0]);
                                c4f[1] *= (ambient[1] + 0.5 * diffuse[1]);
                                c4f[2] *= (ambient[2] + 0.5 * diffuse[2]);