From 7643f312a487880def74d89da341ac68667c3879 Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 1 Mar 2011 05:33:58 +0000 Subject: [PATCH] fix two typos (one a compile error, one a code error) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10875 d7cf8633-e32d-0410-b094-e92efae38249 --- r_shadow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/r_shadow.c b/r_shadow.c index 33818cb1..0b151fc1 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -2517,9 +2517,9 @@ static void R_Shadow_UpdateBounceGridTexture(void) // scale down shot color by bounce intensity and texture color (or 50% if no texture reported) VectorScale(shotcolor, r_shadow_bouncegrid_particlebounceintensity.value, shotcolor); if (cliptrace.hittexture && cliptrace.hittexture->currentskinframe) - VectorMultiply(shotcolor, rsurface.texture->currentskinframe->avgcolor, shotcolor); + VectorMultiply(shotcolor, cliptrace.hittexture->currentskinframe->avgcolor, shotcolor); else - VectorScale(shotcolor, 0.5f->avgcolor, shotcolor); + VectorScale(shotcolor, 0.5f, shotcolor); if (VectorLength2(shotcolor) < 3.0f) break; r_refdef.stats.bouncegrid_bounces++; -- 2.39.2