1
0
Fork 0

IRIX fixes from Erik Hofman

This commit is contained in:
daveluff 2003-03-03 11:43:49 +00:00
parent b308e92bd6
commit c8b8afeb78
2 changed files with 4 additions and 2 deletions

View file

@ -52,7 +52,7 @@ TransPar FGTransmission::Parse() {
for ( i=0; i < msglen; ++i ) {
if ( TransText.c_str()[i] != ' ' ) {
if ( TransText.c_str()[i] != ',' ) tokens[tkn] += TransText.c_str()[i];
} else if ( tokens[tkn] != "" ) {
} else if ( !tokens[tkn].empty() ) {
if ( tkn <= 20 ) {
tkn += 1;
} else {
@ -71,7 +71,7 @@ TransPar FGTransmission::Parse() {
} else if ( tokens[i] == "landing" ) {
tpar.intention = "landing";
for ( j=i+1; j<=i+2; ++j ) {
if ( tokens[j] != "" ) {
if ( !tokens[j].empty() ) {
toklen = strlen( tokens[j].c_str() );
bool aid = true;
for ( k=0; k<toklen; ++k )

View file

@ -26,6 +26,8 @@
# include <config.h>
#endif
#include <strings.h> // bcopy()
#include <simgear/debug/logstream.hxx>
#include <simgear/misc/sgstream.hxx>
#include <simgear/math/sg_geodesy.hxx>