add slope check here
not necessary but may skip more uneeded checks and stuff
This commit is contained in:
1 parent
02a7175beb
commit
cf1d3bce53
1 file changed
+2
-1
@@ -728,7 +728,8 @@ static void HWR_RenderPlane(subsector_t *subsector, poly_subsector_t *xsub, bool
|
||||
for (i = 0, v3d = planeVerts; i < (INT32)nrPlaneVerts; i++,v3d++,pv++)
|
||||
SETUP3DVERT(v3d, pv->x, pv->y);
|
||||
|
||||
lightlevel = HWR_CalcSlopeLight(lightlevel, slope, gl_frontsector, (FOFsector != NULL));
|
||||
if (slope)
|
||||
lightlevel = HWR_CalcSlopeLight(lightlevel, slope, gl_frontsector, (FOFsector != NULL));
|
||||
|
||||
if (subsector && lightlevel != 255 && (havesnakerpad || havepazrcst || havefaytpad))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user