From: curt Date: Wed, 3 Jan 2001 19:00:55 +0000 (+0000) Subject: Added a scenery version check so we will die if the program tries to load X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1db7986e0e2761b14c5b15aaa5b88ebb4b7f76ea;p=flightgear.git Added a scenery version check so we will die if the program tries to load scenery that is newer than we know how to handle. --- diff --git a/src/Objects/obj.cxx b/src/Objects/obj.cxx index 7eca9a6bf..3a5524454 100644 --- a/src/Objects/obj.cxx +++ b/src/Objects/obj.cxx @@ -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 ) {