From: havoc Date: Sat, 18 Mar 2006 05:18:27 +0000 (+0000) Subject: fix stupid but non-harmful bug in RSurf_DrawLightmap code X-Git-Tag: xonotic-v0.1.0preview~4185 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04e1a0ee29df55acad45f5fbe113f984b2efe7ad;p=xonotic%2Fdarkplaces.git fix stupid but non-harmful bug in RSurf_DrawLightmap code git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6134 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/gl_rmain.c b/gl_rmain.c index 8b7301b9..284a2759 100644 --- a/gl_rmain.c +++ b/gl_rmain.c @@ -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;