+ if ( strcmp( altitude_enabled->getStringValue(), "altitude-hold" ) == 0 ) {
+ snprintf( hud_alt_text, 256, "alt = %.0f\n",
+ fgGetDouble("/autopilot/settings/target-altitude-ft") );
+ HUD_TextList.add( fgText( 40, apY, hud_alt_text ) );
+ apY -= 15;
+ } else if ( strcmp( altitude_enabled->getStringValue(), "agl-hold" ) == 0 ){
+ snprintf( hud_alt_text, 256, "agl = %.0f\n",
+ fgGetDouble("/autopilot/settings/target-agl-ft") );
+ HUD_TextList.add( fgText( 40, apY, hud_alt_text ) );
+ apY -= 15;
+ }
+