Revert "Merge branch 'master' of https://github.com/MontyTRC89/TR5Main"

This reverts commit 073bc756fb, reversing
changes made to 310d11a1f4.
This commit is contained in:
Woops 2020-10-07 22:27:15 -05:00
parent 073bc756fb
commit 01de9bd37a

View file

@ -335,11 +335,11 @@ namespace T5M::Renderer
{
RendererLight *light = m_dynamicLights[i];
Vector3 boxMin = Vector3(r->x, -r->minfloor, r->z);
Vector3 boxMax = Vector3((r->x + r->xSize) * WALL_SIZE, -r->maxceiling, (r->z + r->ySize) * WALL_SIZE);
Vector3 boxMin = Vector3(r->x - WALL_SIZE, -r->minfloor, r->z - WALL_SIZE);
Vector3 boxMax = Vector3(r->x + r->xSize * WALL_SIZE, -r->maxceiling, r->z + r->ySize * WALL_SIZE);
Vector3 center = Vector3(light->Position.x, -light->Position.y, light->Position.z);
float radius = light->Out;
if (sphereBoxIntersection(boxMin, boxMax, center, radius))
if (sphereBoxIntersection(boxMin, boxMax, center, light->Out))
renderView.lightsToDraw.push_back(light);
}
}