From 18bda9181f179e05895d04842e42637bad3f0ac7 Mon Sep 17 00:00:00 2001 From: Faerbit Date: Tue, 10 Mar 2015 00:46:12 +0100 Subject: [PATCH] Reducing visible lightCount. --- graphics.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]); } }