From b7daf28f0e7175f5f81d1bf9536daf1a40215543 Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 3 Nov 1998 12:33:11 +0000 Subject: [PATCH] Display ft or m in mini-hud next to altitude. --- Cockpit/hud.cxx | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Cockpit/hud.cxx b/Cockpit/hud.cxx index 3eff568eb..bb4457f0c 100644 --- a/Cockpit/hud.cxx +++ b/Cockpit/hud.cxx @@ -57,6 +57,7 @@ extern "C" { #include "hud.hxx" +static char units[5]; // The following routines obtain information concerntin the aircraft's // current state and return it to calling instrument display routines. @@ -616,11 +617,16 @@ int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ ) TRUE ); HUD_deque.push_front( p ); + if ( current_options.get_units() == fgOPTIONS::FG_UNITS_FEET ) { + strcpy(units, " ft"); + } else { + strcpy(units, " m"); + } p = new instr_label( x_pos, 25, 40, 10, get_altitude, "%5.0f", "Altitude ", - " m", + units, 1.0, HUDS_TOP, RIGHT_JUST, @@ -829,6 +835,9 @@ void fgUpdateHUD( void ) { } // $Log$ +// Revision 1.26 1998/11/03 12:33:11 curt +// Display ft or m in mini-hud next to altitude. +// // Revision 1.25 1998/10/17 01:33:57 curt // C++ ifying ... // -- 2.39.2