]> git.mxchange.org Git - flightgear.git/blobdiff - src/GUI/apt_dlg.cxx
Erik Hofman:
[flightgear.git] / src / GUI / apt_dlg.cxx
index 41d2e21c572a0114ec549acc1f9aec40ae753e54..3399d7e914d710fd06a2a866958660c0a7396799 100644 (file)
@@ -98,10 +98,15 @@ void AptDialog_OK (puObject *)
             fgSetPosFromAirportIDandHdg( AptId, 
                                          cur_fdm_state->get_Psi() *
                                          SGD_RADIANS_TO_DEGREES);
+            fgSetTowerPosFromAirportID( AptId, 
+                                        cur_fdm_state->get_Psi() *
+                                        SGD_RADIANS_TO_DEGREES);
             // BusyCursor(0);
             fgReInitSubsystems();
+           double visibility_meters =
+             fgGetDouble("/environment/visibility-m");
             global_tile_mgr.update( longitude->getDoubleValue(),
-                                    latitude->getDoubleValue() );
+                                    latitude->getDoubleValue(),visibility_meters );
             // BusyCursor(1);
         } else {
             AptId  += " not in database.";