From 04e1a0ee29df55acad45f5fbe113f984b2efe7ad Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 18 Mar 2006 05:18:27 +0000 Subject: [PATCH] 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 --- gl_rmain.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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; -- 2.39.2