]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix a bug in the last commit pertaining to lightning beam fogging
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Apr 2007 09:52:01 +0000 (09:52 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 22 Apr 2007 09:52:01 +0000 (09:52 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7152 d7cf8633-e32d-0410-b094-e92efae38249

r_lightning.c

index 8e07ad0ff0551786a2d97cabcd184698f8f9c46c..76c8ff24f5986bfce3d80e70f34a2c928df6388a 100644 (file)
@@ -219,7 +219,7 @@ void R_FogLightningBeam_Vertex3f_Color4f(const float *v, float *c, int numverts,
        float fog;
        for (i = 0;i < numverts;i++, v += 3, c += 4)
        {
-               fog = FogPoint_Model(v);
+               fog = FogPoint_World(v);
                c[0] = r * fog;
                c[1] = g * fog;
                c[2] = b * fog;