Small fix that got lost in rebase

develop
Warmist 2014-03-07 20:28:07 +02:00
parent 50963c73fa
commit 4cbab2b014
1 changed files with 1 additions and 0 deletions

@ -56,6 +56,7 @@ lightSource::lightSource(rgbf power,int radius):power(power),flicker(false)
this->radius = radius;
else
{
float levelDim = 0.2f;//TODO this is not correct if you change config
float totalPower = power.r;
if(totalPower < power.g)totalPower = power.g;
if(totalPower < power.b)totalPower = power.b;