]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix two typos (one a compile error, one a code error)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Mar 2011 05:33:58 +0000 (05:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 1 Mar 2011 05:33:58 +0000 (05:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10875 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index 33818cb1faa0b735ed6bbac3fa75139709c20fc3..0b151fc118d7a521ad61f0bd38b35f5797ea98f5 100644 (file)
@@ -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++;