From ee6f6ecf618c4fa296f1727d7b40db51627d11ca Mon Sep 17 00:00:00 2001 From: david Date: Fri, 4 Oct 2002 00:23:40 +0000 Subject: [PATCH] Turn the runway lights on during the day when visibility is less than 5000m (about 3SM). --- src/Objects/obj.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }