From: havoc Date: Sat, 5 Jan 2008 22:22:32 +0000 (+0000) Subject: load rtlights file sooner in map change process, to avoid it showing up X-Git-Tag: xonotic-v0.1.0preview~2591 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=91b80db1eea563374c48567f8d540b5b9495006b;p=xonotic%2Fdarkplaces.git load rtlights file sooner in map change process, to avoid it showing up in -profilegameonly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7913 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/r_shadow.c b/r_shadow.c index a78bf7cb..b6830324 100644 --- a/r_shadow.c +++ b/r_shadow.c @@ -386,6 +386,8 @@ void r_shadow_shutdown(void) void r_shadow_newmap(void) { + if (r_refdef.worldmodel && strncmp(r_refdef.worldmodel->name, r_shadow_mapname, sizeof(r_shadow_mapname))) + R_Shadow_EditLights_Reload_f(); } void R_Shadow_Help_f(void) @@ -3131,9 +3133,6 @@ void R_ShadowVolumeLighting(qboolean visible) size_t lightindex; dlight_t *light; - if (r_refdef.worldmodel && strncmp(r_refdef.worldmodel->name, r_shadow_mapname, sizeof(r_shadow_mapname))) - R_Shadow_EditLights_Reload_f(); - if (r_editlights.integer) R_Shadow_DrawLightSprites();