// in >> skipeol;
// in >> skipcomment;
-#ifdef __MWERKS__
-
- char c = 0;
- while ( in.get(c) && c != '\0' ) {
- in.putback(c);
- in >> a;
- if ( a.get_type() != '[' ) {
- transmissionlist_code[a.get_station()].push_back(a);
- }
- in >> skipcomment;
- }
-
-#else
-
double min = 100000;
double max = 0;
*/
}
-#endif
-
// init ATC menu
fgSetBool("/sim/atc/menu",false);
num_trans += 1;
}
else {
- cout << "Transmissionlist error: Too many transmissions" << endl;
+ SG_LOG(SG_GENERAL, SG_WARN, "Transmissionlist error: Too many transmissions");
}
}
if ( num_trans != 0 ) return true;
else {
- cout << "No transmission with station " << station << "found." << endl;
+ SG_LOG(SG_GENERAL, SG_WARN, "No transmission with station " << station << "found.");
string empty;
return false;
}
else if ( strcmp ( tag, "@RW" ) == 0 )
strcat( &dum[0], tpars.runway.c_str() );
else {
- cout << "Tag " << tag << " not found" << endl;
+ SG_LOG(SG_GENERAL, SG_WARN, "Tag " << tag << " not found");
break;
}
strcat( &dum[0], &mes[len+3] );
++check;
if(check > 10) {
- SG_LOG(SG_ATC, SG_WARN, "WARNING: Possibly endless loop terminated in FGTransmissionlist::gen_text(...)");
+ SG_LOG(SG_GENERAL, SG_WARN, "WARNING: Possibly endless loop terminated in FGTransmissionlist::gen_text(...)");
break;
}
}