Made temperature, dew-point, and pressure at altitude read-only, so
that they won't get messed up during a reset if there are reassigned before the altitude.
This commit is contained in:
parent
0ba90f4d2b
commit
f0195b564d
1 changed files with 3 additions and 9 deletions
|
@ -65,25 +65,19 @@ FGEnvironmentMgr::bind ()
|
|||
&FGEnvironment::set_temperature_sea_level_degc);
|
||||
fgSetArchivable("/environment/temperature-sea-level-degc");
|
||||
fgTie("/environment/temperature-degc", _environment,
|
||||
&FGEnvironment::get_temperature_degc,
|
||||
&FGEnvironment::set_temperature_degc);
|
||||
fgSetArchivable("/environment/temperature-degc");
|
||||
&FGEnvironment::get_temperature_degc); // FIXME: read-only for now
|
||||
fgTie("/environment/dewpoint-sea-level-degc", _environment,
|
||||
&FGEnvironment::get_dewpoint_sea_level_degc,
|
||||
&FGEnvironment::set_dewpoint_sea_level_degc);
|
||||
fgSetArchivable("/environment/dewpoint-sea-level-degc");
|
||||
fgTie("/environment/dewpoint-degc", _environment,
|
||||
&FGEnvironment::get_dewpoint_degc,
|
||||
&FGEnvironment::set_dewpoint_degc);
|
||||
fgSetArchivable("/environment/dewpoint-degc");
|
||||
&FGEnvironment::get_dewpoint_degc); // FIXME: read-only for now
|
||||
fgTie("/environment/pressure-sea-level-inhg", _environment,
|
||||
&FGEnvironment::get_pressure_sea_level_inhg,
|
||||
&FGEnvironment::set_pressure_sea_level_inhg);
|
||||
fgSetArchivable("/environment/pressure-sea-level-inhg");
|
||||
fgTie("/environment/pressure-inhg", _environment,
|
||||
&FGEnvironment::get_pressure_inhg,
|
||||
&FGEnvironment::set_pressure_inhg);
|
||||
fgSetArchivable("/environment/pressure-inhg");
|
||||
&FGEnvironment::get_pressure_inhg); // FIXME: read-only for now
|
||||
fgTie("/environment/density-slugft3", _environment,
|
||||
&FGEnvironment::get_density_slugft3); // read-only
|
||||
fgTie("/environment/wind-from-heading-deg", _environment,
|
||||
|
|
Loading…
Add table
Reference in a new issue