From: daveluff Date: Tue, 3 Jun 2003 14:08:24 +0000 (+0000) Subject: Explicitly initialise aptElev X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f61dbf138260b643a4e4cf71e68b2b3990634ace;p=flightgear.git Explicitly initialise aptElev --- diff --git a/src/ATC/ground.cxx b/src/ATC/ground.cxx index 526aec07e..9c78282fb 100644 --- a/src/ATC/ground.cxx +++ b/src/ATC/ground.cxx @@ -61,6 +61,9 @@ FGGround::FGGround() { // 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_speed_knots = fgGetNode("/environment/wind-speed-kts", true); + + // TODO - get the actual airport elevation + aptElev = 0.0; } 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. wind_from_hdg = fgGetNode("/environment/wind-from-heading-deg", true); wind_speed_knots = fgGetNode("/environment/wind-speed-kts", true); + + // TODO - get the actual airport elevation + aptElev = 0.0; } FGGround::~FGGround() {