]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
corrected fullbright map handling for the case when the fullbright bmodel is not...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jul 2002 10:09:45 +0000 (10:09 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 29 Jul 2002 10:09:45 +0000 (10:09 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2112 d7cf8633-e32d-0410-b094-e92efae38249

gl_rsurf.c

index e3429922df8fb731dd812cb674838c570c620009..16ab5c58575f73ca4f16842953c9a4f768234912 100644 (file)
@@ -378,7 +378,7 @@ static void R_BuildLightMap (msurface_t *surf, int dlightchanged)
        lightmap = surf->samples;
 
 // set to full bright if no light data
-       if ((currentrenderentity->effects & EF_FULLBRIGHT) || !cl.worldmodel->lightdata)
+       if ((currentrenderentity->effects & EF_FULLBRIGHT) || !currentrenderentity->model->lightdata)
        {
                bl = blocklights;
                for (i = 0;i < size3;i++)
@@ -387,7 +387,7 @@ static void R_BuildLightMap (msurface_t *surf, int dlightchanged)
        else
        {
 // clear to no light
-               j = r_ambient.value * 512.0f; // would be 256.0f logically, but using 512.0f to match winquake style
+               j = r_ambient.value * 512.0f; // would be 128.0f logically, but using 512.0f to match winquake style
                if (j)
                {
                        bl = blocklights;