git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5122
d7cf8633-e32d-0410-b094-
e92efae38249
void R_ResetSkyBox(void)
{
- skyboxside[0] = skyboxside[1] = skyboxside[2] = skyboxside[3] = skyboxside[4] = skyboxside[5] = NULL;
+ R_UnloadSkyBox();
skyname[0] = 0;
R_LoadSkyBox();
}
Cvar_RegisterVariable (&r_sky);
Cvar_RegisterVariable (&r_skyscroll1);
Cvar_RegisterVariable (&r_skyscroll2);
- skyboxside[0] = skyboxside[1] = skyboxside[2] = skyboxside[3] = skyboxside[4] = skyboxside[5] = NULL;
+ memset(&skyboxside, 0, sizeof(skyboxside));
skyname[0] = 0;
R_RegisterModule("R_Sky", r_sky_start, r_sky_shutdown, r_sky_newmap);
}