light: don't cast indirect light in phong/dirtdebug mode

This commit is contained in:
Eric Wasylishen 2016-05-27 12:41:30 -06:00
parent ca0f0448fe
commit 35e92abfcf
1 changed files with 4 additions and 0 deletions

View File

@ -1658,6 +1658,10 @@ LightFace_Bounce(const bsp2_t *bsp, const bsp2_dface_t *face, const lightsurf_t
if (!bounce)
return;
if (!(debugmode == debugmode_bounce
|| debugmode == debugmode_none))
return;
/* use a style 0 light map */
lightmap = Lightmap_ForStyle(lightmaps, 0, lightsurf);