From: Torsten Dreyer Date: Wed, 23 Apr 2014 15:07:00 +0000 (+0200) Subject: ATISEncoder: minor tweak X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19dd46c5b023f75f037e30a5804466139ae129df;p=flightgear.git ATISEncoder: minor tweak no trailing blank at runway designator --- diff --git a/src/ATC/ATISEncoder.cxx b/src/ATC/ATISEncoder.cxx index 436c6bb55..75a397f32 100644 --- a/src/ATC/ATISEncoder.cxx +++ b/src/ATC/ATISEncoder.cxx @@ -46,7 +46,9 @@ string ATCSpeech::getSpokenNumber( string number ) { string result; for( string::iterator it = number.begin(); it != number.end(); ++it ) { - result.append( getSpokenDigit( (*it) - '0' )).SPACE; + if( false == result.empty() ) + result.SPACE; + result.append( getSpokenDigit( (*it) - '0' )); } return result; }