]> git.mxchange.org Git - flightgear.git/commitdiff
Added a scenery version check so we will die if the program tries to load
authorcurt <curt>
Wed, 3 Jan 2001 19:00:55 +0000 (19:00 +0000)
committercurt <curt>
Wed, 3 Jan 2001 19:00:55 +0000 (19:00 +0000)
scenery that is newer than we know how to handle.

src/Objects/obj.cxx

index 7eca9a6bf863e094b87a44a8b05c0d5b0424beb6..3a55244545d3c2b30bd79413f2c8f6d0b65af495 100644 (file)
@@ -469,6 +469,16 @@ ssgBranch *fgObjLoad( const string& path, FGTileEntry *t,
                // read scenery versions number
                in >> scenery_version;
                // cout << "scenery_version = " << scenery_version << endl;
+               if ( scenery_version > 0.4 ) {
+                   FG_LOG( FG_TERRAIN, FG_ALERT, 
+                           "\nYou are attempting to load a tile format that\n"
+                           << "is newer than this version of flightgear can\n"
+                           << "handle.  You should upgrade your copy of\n"
+                           << "FlightGear to the newest version.  For\n"
+                           << "details, please see:\n"
+                           << "\n    http://www.flightgear.org\n" );
+                   exit(-1);
+               }
            } else if ( token == "gbs" ) {
                // reference point (center offset)
                if ( is_base ) {