X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Airports%2Fsimple.cxx;h=bbe93f4c521b7bcace07bd134b842e2ba11ff762;hb=c74350c4fe126328ced5e080a4d262d0bcba5369;hp=978b45cd337d413ff9f1634ad9a44f132a774cc7;hpb=ad3ae513488acc0364815218dbfd22dc13bf9eab;p=flightgear.git diff --git a/Airports/simple.cxx b/Airports/simple.cxx index 978b45cd3..bbe93f4c5 100644 --- a/Airports/simple.cxx +++ b/Airports/simple.cxx @@ -27,7 +27,7 @@ #include -#include +#include #include
#include @@ -52,9 +52,10 @@ int fgAIRPORTS::load( const string& file ) { airports.erase( airports.begin(), airports.end() ); fg_gzifstream in( path ); - if ( !in ) - fgPrintf( FG_GENERAL, FG_EXIT, "Cannot open file: %s\n", - path.c_str()); + if ( !in ) { + FG_LOG( FG_GENERAL, FG_ALERT, "Cannot open file: " << path ); + exit(-1); + } /* // We can use the STL copy algorithm because the input @@ -109,6 +110,11 @@ fgAIRPORTS::~fgAIRPORTS( void ) { // $Log$ +// Revision 1.9 1998/11/06 21:17:34 curt +// Converted to new logstream debugging facility. This allows release +// builds with no messages at all (and no performance impact) by using +// the -DFG_NDEBUG flag. +// // Revision 1.8 1998/11/06 14:47:01 curt // Changes to track Bernie's updates to fgstream. //