diff --git a/graphics.cc b/graphics.cc index 15c9d1f..64173fa 100644 --- a/graphics.cc +++ b/graphics.cc @@ -524,9 +524,9 @@ void Graphics::updateClosestLights() { std::sort(closestLights.begin(), closestLights.end(), [this](Light a, Light b) {return compareLightDistances(a, b); }); - if (level->getLights()->size() > 32) { + if (level->getLights()->size() > 15) { closestLights = std::vector(&closestLights[0], - &closestLights[31]); + &closestLights[14]); } }