From: havoc Date: Wed, 5 Nov 2003 08:18:54 +0000 (+0000) Subject: call reset functions in init code (not necessary currently, as the compilers currentl... X-Git-Tag: xonotic-v0.1.0preview~6280 X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=commitdiff_plain;h=e33fcd69a0ed7c42c5db6937171e9e6cebfb2a3b;hp=20d99760368903e28b03af3bb6a826b5e61d8989 call reset functions in init code (not necessary currently, as the compilers currently being used for darkplaces clear uninitialized variables, but a good practice) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3628 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_sky.c b/r_sky.c index 7681a8dc..474d01f3 100644 --- a/r_sky.c +++ b/r_sky.c @@ -514,6 +514,8 @@ void R_Sky_Init(void) { Cmd_AddCommand ("loadsky", &LoadSky_f); Cvar_RegisterVariable (&r_sky); + R_ResetSkyBox(); + R_ResetQuakeSky(); R_RegisterModule("R_Sky", r_sky_start, r_sky_shutdown, r_sky_newmap); }