Null checks, initilizations, etc

This commit is contained in:
Shyotl
2011-03-05 18:00:16 -06:00
parent 77117d7463
commit 9f434ab384
12 changed files with 51 additions and 29 deletions

View File

@@ -975,7 +975,10 @@ void LLVOSky::calcAtmospherics(void)
}
temp2.mV[1] = llmax(0.f, lighty);
temp2.mV[1] = 1.f / temp2.mV[1];
if(temp2.mV[1] > 0.f)
{
temp2.mV[1] = 1.f / temp2.mV[1];
}
componentMultBy(sunlight, componentExp((light_atten * -1.f) * temp2.mV[1]));
// Distance