]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
add default for fog_end too
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 20:33:44 +0000 (20:33 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 23 Dec 2007 20:33:44 +0000 (20:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7850 d7cf8633-e32d-0410-b094-e92efae38249

cl_main.c
cl_parse.c

index 6f8c327601ea614b672c17cb44ab10efb81e6edc..8df7f1b856e70a0490df3ec5eda7255d315bed30 100644 (file)
--- a/cl_main.c
+++ b/cl_main.c
@@ -1849,6 +1849,7 @@ static void CL_Fog_f (void)
                return;
        }
        r_refdef.fog_start = 0;
+       r_refdef.fog_end = 16384;
        r_refdef.fog_alpha = 1;
        if(Cmd_Argc() > 1)
                r_refdef.fog_density = atof(Cmd_Argv(1));
index 2f8d289390e3fbdaf5e34ab64f23bf83a9234be5..9a4e3735a1dd1f57d17ce0dfc14014b3fb42b821 100644 (file)
@@ -365,6 +365,7 @@ void CL_ParseEntityLump(char *entdata)
                {
                        r_refdef.fog_start = 0;
                        r_refdef.fog_alpha = 1;
+                       r_refdef.fog_end = 16384;
                        sscanf(value, "%f %f %f %f %f %f %f", &r_refdef.fog_density, &r_refdef.fog_red, &r_refdef.fog_green, &r_refdef.fog_blue, &r_refdef.fog_alpha, &r_refdef.fog_start, &r_refdef.fog_end);
                }
                else if (!strcmp("fog_density", key))