diff options
author | frosch <frosch@openttd.org> | 2011-02-14 21:41:52 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-14 21:41:52 +0000 |
commit | 949bfabe5e09563a835c052705a0be101112351c (patch) | |
tree | 427bd36eda69e1e868d609c833ec6bfdf16a43c4 /src | |
parent | 22afd8396407ce1d8e738833a60f180b526a8550 (diff) | |
download | openttd-949bfabe5e09563a835c052705a0be101112351c.tar.xz |
(svn r22084) -Change: [NewGRF] Check grf version strictly and consider grfs with version < 2 as incompatible. If you have trouble with certain grfs from BaNaNaS, then bother the author about fixing the grf.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index d987c3ed1..395212a91 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -5374,8 +5374,7 @@ static void ScanInfo(ByteReader *buf) _cur_grfconfig->ident.grfid = grfid; - /* TODO We are incompatible to grf_version < 2 as well, but due to broken GRFs out there, we accept these till the next stable */ - if (/*grf_version < 2 || */grf_version > 7) { + if (grf_version < 2 || grf_version > 7) { SetBit(_cur_grfconfig->flags, GCF_INVALID); DEBUG(grf, 0, "%s: NewGRF \"%s\" (GRFID %08X) uses GRF version %d, which is incompatible with this version of OpenTTD.", _cur_grfconfig->filename, name, BSWAP32(grfid), grf_version); } |