summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-01-28 12:08:03 +0000
committerfrosch <frosch@openttd.org>2012-01-28 12:08:03 +0000
commit90c53046c77101c3b6d7ad8e77f79c3cf5ee8da0 (patch)
tree360248efa1d561d9df0b76d04f2a5f14d4ec61d8 /src/newgrf.cpp
parenta60f19ae14935e4f68667e67b650219380f5a86f (diff)
downloadopenttd-90c53046c77101c3b6d7ad8e77f79c3cf5ee8da0.tar.xz
(svn r23860) -Feature: [NewGRF] Add cargo property 1D to set the capacity multipliers when refitting vehicles, which do not use callback 15.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r--src/newgrf.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp
index 1ff37d3fd..3dc225735 100644
--- a/src/newgrf.cpp
+++ b/src/newgrf.cpp
@@ -2798,6 +2798,10 @@ static ChangeInfoResult CargoChangeInfo(uint cid, int numinfo, int prop, ByteRea
cs->callback_mask = buf->ReadByte();
break;
+ case 0x1D: // Vehicle capacity muliplier
+ cs->multiplier = max<uint16>(1u, buf->ReadWord());
+ break;
+
default:
ret = CIR_UNKNOWN;
break;