From: havoc Date: Wed, 16 Oct 2002 22:33:16 +0000 (+0000) Subject: oops, removed the wrong one X-Git-Tag: RELEASE_0_2_0_RC1~129 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d1ddd46e6492360caa1f49e6da9006039458c406;p=xonotic%2Fdarkplaces.git oops, removed the wrong one git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2534 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index 7713f75c..8dacbd34 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -576,7 +576,7 @@ void R_Shadow_GenTexCoords_Diffuse_NormalCubeMap(float *out, int numverts, const void R_Shadow_GenTexCoords_Specular_Attenuation3D(float *out, int numverts, const float *vertex, const float *svectors, const float *tvectors, const float *normals, const vec3_t relativelightorigin, const vec3_t relativeeyeorigin, float lightradius) { int i; - float lightdir[3], eyedir[3], halfdir[3], lightdirlen, ilen; + float lightdir[3], eyedir[3], halfdir[3], lightdirlen, iradius; iradius = 0.5f / lightradius; for (i = 0;i < numverts;i++, vertex += 4, svectors += 4, tvectors += 4, normals += 4, out += 4) {