Added a warning message if the file is not found.

This commit is contained in:
curt
2002-03-11 21:47:09 +00:00
parent a3186af099
commit 7fa5dd7a35
2 changed files with 3 additions and 3 deletions

View File

@@ -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"

View File

@@ -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;
}