- fixed: ACS's GetActorLightLevel didn't check 3D floors.

This commit is contained in:
Christoph Oelckers 2016-04-21 11:17:28 +02:00
commit 27cc3d6289
2 changed files with 21 additions and 2 deletions

View file

@ -723,7 +723,7 @@ lightlist_t * P_GetPlaneLight(sector_t * sector, secplane_t * plane, bool unders
TArray<lightlist_t> &lightlist = sector->e->XFloor.lightlist;
double planeheight=plane->ZatPoint(sector->centerspot);
if(underside) planeheight--;
if(underside) planeheight-= EQUAL_EPSILON;
for(i = 1; i < lightlist.Size(); i++)
if (lightlist[i].plane.ZatPoint(sector->centerspot) <= planeheight)