]> git.mxchange.org Git - flightgear.git/commitdiff
Follow up tweaks.
authorcurt <curt>
Thu, 20 Sep 2001 21:03:41 +0000 (21:03 +0000)
committercurt <curt>
Thu, 20 Sep 2001 21:03:41 +0000 (21:03 +0000)
src/Cockpit/hud.cxx

index b8d607ed8150b5d88ed80392bcece07db5ec5ea8..d840b4eceb680a81009469ea3e8657d7136aeb14 100644 (file)
@@ -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 *