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.
This commit is contained in:
parent
6ccc92a666
commit
1db7986e0e
1 changed files with 10 additions and 0 deletions
|
@ -469,6 +469,16 @@ ssgBranch *fgObjLoad( const string& path, FGTileEntry *t,
|
||||||
// read scenery versions number
|
// read scenery versions number
|
||||||
in >> scenery_version;
|
in >> scenery_version;
|
||||||
// cout << "scenery_version = " << scenery_version << endl;
|
// 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" ) {
|
} else if ( token == "gbs" ) {
|
||||||
// reference point (center offset)
|
// reference point (center offset)
|
||||||
if ( is_base ) {
|
if ( is_base ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue