diff --git a/game/graphics.cc b/game/graphics.cc index e0123db..d762a9d 100644 --- a/game/graphics.cc +++ b/game/graphics.cc @@ -526,9 +526,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[15]); } }