1
0
Fork 0

Prevent negative alpha value

(affects splash screen)
This commit is contained in:
ThorstenB 2012-03-26 21:09:10 +02:00
parent 1df5347a06
commit d436484c21

View file

@ -1365,7 +1365,7 @@ FGRenderer::update( ) {
double sAlpha = _splash_alpha->getDoubleValue();
sAlpha -= SGMiscd::max(0.0,delay_time/fade_time);
FGScenerySwitchCallback::scenery_enabled = (sAlpha<1.0);
_splash_alpha->setDoubleValue(sAlpha);
_splash_alpha->setDoubleValue((sAlpha < 0) ? 0.0 : sAlpha);
}
FGLight *l = static_cast<FGLight*>(globals->get_subsystem("lighting"));