1
0
Fork 0

Retrieve the full pavement/taxiway description, made of several words

This commit is contained in:
fredb 2009-06-14 16:22:35 +00:00 committed by Tim Moore
parent 97c214e4fc
commit 522787c173

View file

@ -143,7 +143,7 @@ public:
// frequency entries (ignore) // frequency entries (ignore)
} else if ( line_id == 110 ) { } else if ( line_id == 110 ) {
pavement = true; pavement = true;
parsePavementLine850(simgear::strutils::split(line)); parsePavementLine850(simgear::strutils::split(line, 0, 4));
} else if ( line_id >= 111 && line_id <= 114 ) { } else if ( line_id >= 111 && line_id <= 114 ) {
if ( pavement ) if ( pavement )
parsePavementNodeLine850(line_id, simgear::strutils::split(line)); parsePavementNodeLine850(line_id, simgear::strutils::split(line));
@ -403,6 +403,8 @@ private:
{ {
if ( token.size() >= 5 ) { if ( token.size() >= 5 ) {
pavement_ident = token[4]; pavement_ident = token[4];
if ( !pavement_ident.empty() && pavement_ident[pavement_ident.size()-1] == '\r' )
pavement_ident.erase( pavement_ident.size()-1 );
} else { } else {
pavement_ident = "xx"; pavement_ident = "xx";
} }