SG_LOG(SG_GENERAL, SG_INFO, " Fixes");
current_fixlist = new FGFixList;
SGPath p_fix( globals->get_fg_root() );
- p_fix.append( "Navaids/default.fix" );
+ p_fix.append( "Navaids/fix.dat" );
current_fixlist->init( p_fix );
return true;
#include STL_STRING
SG_USING_STD(string);
+// SG_USING_STD(cout);
+// SG_USING_STD(endl);
+
class FGFix {
inline istream&
operator >> ( istream& in, FGFix& f )
{
- in >> f.ident;
+ in >> f.lat;
- if ( f.ident[0] == '[' )
+ if ( f.lat > 95.0 ) {
return in >> skipeol;
-
- in >> f.lat >> f.lon;
+ }
+ in >> f.lon >> f.ident;
// cout << "id = " << f.ident << endl;
exit(-1);
}
- // read in each line of the file
-
+ // toss the first two lines of the file
+ in >> skipeol;
in >> skipeol;
- in >> skipcomment;
+
+ // read in each remaining line of the file
#ifdef __MWERKS__
char c = 0;
FGFix fix;
in >> fix;
- if ( fix.get_ident() == "[End]" ) {
+ if ( fix.get_lat() > 95.0 ) {
break;
}