From 91b80db1eea563374c48567f8d540b5b9495006b Mon Sep 17 00:00:00 2001 From: havoc Date: Sat, 5 Jan 2008 22:22:32 +0000 Subject: [PATCH] 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 --- r_shadow.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); -- 2.39.2