]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
load rtlights file sooner in map change process, to avoid it showing up
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 22:22:32 +0000 (22:22 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 22:22:32 +0000 (22:22 +0000)
in -profilegameonly

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7913 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index a78bf7cba4c5ccc2f3b733a557ae36a4644acd4d..b6830324c8fb29521843cc40da213c70ad678f65 100644 (file)
@@ -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();