]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix stupid but non-harmful bug in RSurf_DrawLightmap code
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Mar 2006 05:18:27 +0000 (05:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 18 Mar 2006 05:18:27 +0000 (05:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6134 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c

index 8b7301b99acaa83a3deea01170ca527f3596100d..284a27599c4a6fee01ca3e047899ecee03bbd971 100644 (file)
@@ -2582,12 +2582,10 @@ static void RSurf_DrawLightmap(const entity_render_t *ent, const texture_t *text
                        for (i = 0;i < numverts;i++, v += 3, c2 += 3, c += 4)
                        {
                                if ((f = DotProduct(c2, lightdir)) > 0)
-                               {
                                        VectorMA(ambientcolor, f, diffusecolor, c);
-                                       c[3] = a;
-                               }
                                else
-                                       VectorCopy4(ambientcolor, c);
+                                       VectorCopy(ambientcolor, c);
+                               c[3] = a;
                        }
                        r = 1;
                        g = 1;