]> git.mxchange.org Git - simgear.git/blobdiff - simgear/timing/sg_time.cxx
Keep (deprecated) SGTime::update method for a while
[simgear.git] / simgear / timing / sg_time.cxx
index e3b403a05486e2f68a945a5b285364fedd55acc2..9c7cb326ddbea2d3582b336a5b6007a7a25e63ab 100644 (file)
@@ -182,6 +182,12 @@ static double sidereal_course( time_t cur_time, const struct tm *gmt, double lng
     return lstTmp;
 }
 
+/** Deprecated method. To be removed after the next release... */
+void SGTime::update( double lon_rad, double lat_rad, time_t ct, long int warp )
+{
+    const SGGeod& location = SGGeod::fromRad(lon_rad, lat_rad);
+    update(location, ct, warp);
+}
 
 // Update the time related variables
 void SGTime::update( const SGGeod& location, time_t ct, long int warp )