]> git.mxchange.org Git - flightgear.git/commitdiff
Fix to time initialization (based on position) code
authorcurt <curt>
Mon, 31 Jul 2000 15:05:46 +0000 (15:05 +0000)
committercurt <curt>
Mon, 31 Jul 2000 15:05:46 +0000 (15:05 +0000)
src/Main/main.cxx

index 1afd19c32322348f903fb4caaba7e9a63b8810bb..ce4189d4ec4852febf1853899c557ca1b87e485c 100644 (file)
@@ -1321,8 +1321,8 @@ int main( int argc, char **argv ) {
     // Initialize time
     FGPath zone( current_options.get_fg_root() );
     zone.append( "Timezone" );
-    SGTime *t = new SGTime( current_options.get_lon(),
-                           current_options.get_lat(),
+    SGTime *t = new SGTime( current_options.get_lon() * DEG_TO_RAD,
+                           current_options.get_lat() * DEG_TO_RAD,
                            zone.str() );
 
     // Handle potential user specified time offsets