1
0
Fork 0

Turn the runway lights on during the day when visibility is less than

5000m (about 3SM).
This commit is contained in:
david 2002-10-04 00:23:40 +00:00
parent d1f5f04423
commit ee6f6ecf61

View file

@ -78,7 +78,8 @@ runway_lights_predraw (ssgEntity * e)
{
// Turn on lights only at night
float sun_angle = cur_light_params.sun_angle * SGD_RADIANS_TO_DEGREES;
return int(sun_angle > 90.0);
return int((sun_angle > 90.0) ||
(fgGetDouble("/environment/visibility-m") < 5000.0));
}