From: david Date: Fri, 4 Oct 2002 00:23:40 +0000 (+0000) Subject: Turn the runway lights on during the day when visibility is less than X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ee6f6ecf618c4fa296f1727d7b40db51627d11ca;p=flightgear.git Turn the runway lights on during the day when visibility is less than 5000m (about 3SM). --- diff --git a/src/Objects/obj.cxx b/src/Objects/obj.cxx index 0ecf55d75..8abd10ce0 100644 --- a/src/Objects/obj.cxx +++ b/src/Objects/obj.cxx @@ -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)); }