From: curt Date: Mon, 11 Mar 2002 21:47:09 +0000 (+0000) Subject: Added a warning message if the file is not found. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7fa5dd7a352501f38dc9fa777440faf6577f6bcf;p=simgear.git Added a warning message if the file is not found. --- diff --git a/simgear/constants.h b/simgear/constants.h index f0a09435..dcb266d0 100644 --- a/simgear/constants.h +++ b/simgear/constants.h @@ -123,7 +123,7 @@ /** Highest binobj format version we know how to read/write. This starts at * 0 and can go up to 65535 */ -#define SG_BINOBJ_VERSION 5 +#define SG_BINOBJ_VERSION 6 /** for backwards compatibility */ #define SG_SCENERY_FILE_FORMAT "0.4" diff --git a/simgear/io/sg_binobj.cxx b/simgear/io/sg_binobj.cxx index 01141d45..73403d37 100644 --- a/simgear/io/sg_binobj.cxx +++ b/simgear/io/sg_binobj.cxx @@ -320,8 +320,8 @@ bool SGBinObject::read_bin( const string& file ) { if ( (fp = gzopen( file.c_str(), "rb" )) == NULL ) { string filegz = file + ".gz"; if ( (fp = gzopen( filegz.c_str(), "rb" )) == NULL ) { - // cout << "ERROR: opening " << file << " or " << filegz - // << "for reading!" << endl; + cout << "ERROR: opening " << file << " or " << filegz + << "for reading!" << endl; return false; }