From 00415213f30139ccfd1c2f7a3d9c0d15381f5c22 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 28 Aug 2010 21:45:44 +0000 Subject: (svn r20675) -Add [FS#4077]: method to access the (action 14) NewGRF version of other NewGRFs --- src/newgrf.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index f8e7cbe5e..8e1edebe8 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -5685,6 +5685,8 @@ static void ParamSet(ByteReader *buf) src1 = 0; } else if (file == NULL || (c != NULL && c->status == GCS_DISABLED)) { src1 = 0; + } else if (src1 == 0xFE) { + src1 = c->version; } else { src1 = file->GetParam(src1); } -- cgit v1.2.3-70-g09d2