diff --git a/src/hardware/hw_main.c b/src/hardware/hw_main.c index 1fde3d0a9..a97b5aff7 100644 --- a/src/hardware/hw_main.c +++ b/src/hardware/hw_main.c @@ -695,12 +695,30 @@ static void HWR_RenderPlane(subsector_t *subsector, extrasubsector_t *xsub, bool if (subsector && (lumpnum != LUMPERROR)) { + ffloor_t *rover; const char *name = W_CheckNameForNum(lumpnum); if (name && (((memcmp(name, "BOST", 4) == 0) && (GETSECSPECIAL(subsector->sector->special, 4) == 6)) || memcmp(name, "PAZRCST", 7) == 0 || memcmp(name, "FSBOST", 6) == 0)) { lightlevel = 255; } + + if (subsector->sector->ffloors) + { + for (rover = subsector->sector->ffloors; rover; rover = rover->next) + { + if (!rover->master->frontsector->special) + continue; + + if (!(rover->flags & FF_EXISTS) || !(rover->flags & FF_RENDERPLANES) || (rover->flags & FF_FOG) || (rover->flags & FF_RIPPLE)) + continue; + + if (name && ((memcmp(name, "BOST", 4) == 0) && (GETSECSPECIAL(rover->master->frontsector->special, 4) == 6))) + { + lightlevel = 255; + } + } + } } HWR_Lighting(&Surf, lightlevel, planecolormap, P_SectorUsesDirectionalLighting(gl_frontsector));