make fullbright speedpads work on fofs pls
This commit is contained in:
1 parent
c1e5cadcc7
commit
340dffab23
1 file changed
+18
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user