]> git.mxchange.org Git - flightgear.git/blobdiff - src/Objects/materialmgr.cxx
Initial revision
[flightgear.git] / src / Objects / materialmgr.cxx
index 28e21c8034495d276bbc0d8cb603e6a0a7de116f..182235a6bc02c5d7d8ec53ffc95ae66b664d9063 100644 (file)
@@ -134,18 +134,12 @@ fgMATERIAL_MGR::load_lib ( void )
     mpath.append( "materials" );
 
     fg_gzifstream in( mpath.str() );
-    if ( ! in.is_open() ) {
+    if ( ! in ) {
        FG_LOG( FG_GENERAL, FG_ALERT, "Cannot open file: " << mpath.str() );
        exit(-1);
     }
 
-#ifndef __MWERKS__
     while ( ! in.eof() ) {
-#else
-    char c = '\0';
-    while ( in.get(c) && c != '\0' ) {
-       in.putback(c);
-#endif
         // printf("%s", line);
 
        // strip leading white space and comments