From: ehofman Date: Wed, 7 Jan 2004 09:21:35 +0000 (+0000) Subject: Make the position of the sun above the horizon available in the proprty tree X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=519fd99106e7068511956e6ac9f03dde3a831bc2;p=flightgear.git Make the position of the sun above the horizon available in the proprty tree --- diff --git a/src/Time/light.cxx b/src/Time/light.cxx index 733cea6c1..6b88cca94 100644 --- a/src/Time/light.cxx +++ b/src/Time/light.cxx @@ -133,9 +133,13 @@ void FGLight::reinit () { } void FGLight::bind () { + SGPropertyNode *prop = globals->get_props(); + prop->tie("/sim/time/sun-pos-deg", SGRawValuePointer(&_sun_angle)); } void FGLight::unbind () { + SGPropertyNode *prop = globals->get_props(); + prop->untie("/sim/time/sun-pos-deg"); }