1
0
Fork 0

Maintenance: ATISEncoder

member variable initialization.
spelling.
This commit is contained in:
scttgs0 2023-05-24 23:31:12 -05:00
parent 708eb252da
commit f15e1346be
2 changed files with 4 additions and 4 deletions

View file

@ -94,7 +94,7 @@ string ATCSpeech::getSpokenAltitude( int altitude )
{
string result;
int thousands = altitude / 1000;
int hundrets = (altitude % 1000) / 100;
int hundreds = (altitude % 1000) / 100;
if( thousands > 0 ) {
result.append( getSpokenNumber(thousands) );
@ -102,8 +102,8 @@ string ATCSpeech::getSpokenAltitude( int altitude )
result.append( getSpokenDigit(1000) );
result.SPACE;
}
if( hundrets > 0 )
result.append( getSpokenNumber(hundrets) )
if( hundreds > 0 )
result.append( getSpokenNumber(hundreds) )
.SPACE
.append( getSpokenDigit(100) );

View file

@ -123,5 +123,5 @@ protected:
const std::string& name);
FGAirportRef airport;
ATISInformationProvider* _atis;
ATISInformationProvider* _atis{nullptr};
};