Explicitly initialise aptElev
This commit is contained in:
parent
9b353d3665
commit
f61dbf1382
1 changed files with 6 additions and 0 deletions
|
@ -61,6 +61,9 @@ FGGround::FGGround() {
|
||||||
// Init the property nodes - TODO - need to make sure we're getting surface winds.
|
// Init the property nodes - TODO - need to make sure we're getting surface winds.
|
||||||
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
|
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
|
||||||
wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
|
wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
|
||||||
|
|
||||||
|
// TODO - get the actual airport elevation
|
||||||
|
aptElev = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
FGGround::FGGround(string id) {
|
FGGround::FGGround(string id) {
|
||||||
|
@ -74,6 +77,9 @@ FGGround::FGGround(string id) {
|
||||||
// Init the property nodes - TODO - need to make sure we're getting surface winds.
|
// Init the property nodes - TODO - need to make sure we're getting surface winds.
|
||||||
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
|
wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true);
|
||||||
wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
|
wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true);
|
||||||
|
|
||||||
|
// TODO - get the actual airport elevation
|
||||||
|
aptElev = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
FGGround::~FGGround() {
|
FGGround::~FGGround() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue