Turn the runway lights on during the day when visibility is less than
5000m (about 3SM).
This commit is contained in:
parent
d1f5f04423
commit
ee6f6ecf61
1 changed files with 2 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue