globals->get_props()->setBoolValue( "/sim/hud/visibility", false );
}
}
+ global_tile_mgr.refresh_view_timestamps();
// fgReshape(fgGetInt("/sim/startup/xsize"), fgGetInt("/sim/startup/ysize"));
return true;
}
// BusyCursor(0);
if ( global_tile_mgr.init() ) {
// Load the local scenery data
+ double visibility_meters = fgGetDouble("/environment/visibility-m");
global_tile_mgr.update(fgGetDouble("/position/longitude-deg"),
- fgGetDouble("/position/latitude-deg"));
+ fgGetDouble("/position/latitude-deg"),
+ visibility_meters);
} else {
SG_LOG( SG_GENERAL, SG_ALERT,
"Error in Tile Manager initialization!" );
if (hasStep)
value = step->getBoolValue();
else
- value = amount;
+ value = (0.0 != amount);
if (value)
return prop->setBoolValue(!prop->getBoolValue());
else
}
}
-// end of fg_commands.hxx
-
+// end of fg_commands.cxx