diff options
author | frosch <frosch@openttd.org> | 2011-11-08 17:27:46 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-11-08 17:27:46 +0000 |
commit | c2cf26b451bf93dde6730b950b9face513d5accc (patch) | |
tree | 154b76da04f09f97f5998c3ce47db4e16cbdd1b5 /src/newgrf.cpp | |
parent | 52774235eb6eb8affb7e68b94c490d3f09e7ae31 (diff) | |
download | openttd-c2cf26b451bf93dde6730b950b9face513d5accc.tar.xz |
(svn r23149) -Add: [NewGRF] Road vehicle property 23 to shorten vehicles without callback usage.
Diffstat (limited to 'src/newgrf.cpp')
-rw-r--r-- | src/newgrf.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 40906a9ce..a34388dc7 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -1319,6 +1319,10 @@ static ChangeInfoResult RoadVehicleChangeInfo(uint engine, int numinfo, int prop ei->cargo_age_period = buf->ReadWord(); break; + case 0x23: // Shorter vehicle + rvi->shorten_factor = buf->ReadByte(); + break; + default: ret = CommonVehicleChangeInfo(ei, prop, buf); break; |