]> git.mxchange.org Git - flightgear.git/commitdiff
Make the position of the sun above the horizon available in the proprty tree
authorehofman <ehofman>
Wed, 7 Jan 2004 09:21:35 +0000 (09:21 +0000)
committerehofman <ehofman>
Wed, 7 Jan 2004 09:21:35 +0000 (09:21 +0000)
src/Time/light.cxx

index 733cea6c19c798e4ae25d850617b6e8bb0be1c6d..6b88cca94d8925f42fb52267ddbf23b57ebf67f5 100644 (file)
@@ -133,9 +133,13 @@ void FGLight::reinit () {
 }
 
 void FGLight::bind () {
+    SGPropertyNode *prop = globals->get_props();
+    prop->tie("/sim/time/sun-pos-deg", SGRawValuePointer<double>(&_sun_angle));
 }
 
 void FGLight::unbind () {
+    SGPropertyNode *prop = globals->get_props();
+    prop->untie("/sim/time/sun-pos-deg");
 }