From: divverent Date: Sun, 23 Dec 2007 20:33:44 +0000 (+0000) Subject: add default for fog_end too X-Git-Tag: xonotic-v0.1.0preview~2641 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=9857cc61071143927d34cf418006b425be284311;p=xonotic%2Fdarkplaces.git add default for fog_end too git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7850 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_main.c b/cl_main.c index 6f8c3276..8df7f1b8 100644 --- 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)); diff --git a/cl_parse.c b/cl_parse.c index 2f8d2893..9a4e3735 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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))