summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-28 21:45:44 +0000
committerrubidium <rubidium@openttd.org>2010-08-28 21:45:44 +0000
commit00415213f30139ccfd1c2f7a3d9c0d15381f5c22 (patch)
tree5770b9aa66788f70b8c3fdf36b2c3e3bc2a921c4 /src
parentbe59c90e86edd2d07bcffeba0900f17deee2ed6b (diff)
downloadopenttd-00415213f30139ccfd1c2f7a3d9c0d15381f5c22.tar.xz
(svn r20675) -Add [FS#4077]: method to access the (action 14) NewGRF version of other NewGRFs
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}