From: curt Date: Thu, 20 Sep 2001 21:03:41 +0000 (+0000) Subject: Follow up tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1dfe83dfd49363867c19264a69e38575bb3ab7de;p=flightgear.git Follow up tweaks. --- diff --git a/src/Cockpit/hud.cxx b/src/Cockpit/hud.cxx index b8d607ed8..d840b4ece 100644 --- a/src/Cockpit/hud.cxx +++ b/src/Cockpit/hud.cxx @@ -409,6 +409,7 @@ readCard(const SGPropertyNode * node) load_fn = get_throttleval; + if ( (type == "dial") | (type == "tape") ) { p = (instr_item *) new hud_card( x, y, width, @@ -440,7 +441,22 @@ readCard(const SGPropertyNode * node) divisions, //suma zoom //suma ); - return p; + } else { + p = (instr_item *) new gauge_instr( x, // x + y, // y + width, // width + height, // height + load_fn, // data source + options, + scaling, + maxValue,minValue, + major_divs, minor_divs, + dp_showing, + modulator, + working); + } + + return p; }// end readCard static instr_item *