diff options
author | peter1138 <peter1138@openttd.org> | 2007-02-24 23:20:21 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-02-24 23:20:21 +0000 |
commit | 29c81427842d282127c0e12789a156a1f833dcae (patch) | |
tree | 953522568a4df36b0eb313ad9f8f22918ab8e79c /src/newgrf_engine.cpp | |
parent | 5aaff3b5a1bb6dc7a4bc23e25f8d74086437435b (diff) | |
download | openttd-29c81427842d282127c0e12789a156a1f833dcae.tar.xz |
(svn r8890) -Codechange: (NewGRF) add cargo translation support to engine var 47
Diffstat (limited to 'src/newgrf_engine.cpp')
-rw-r--r-- | src/newgrf_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index 412c23585..27320ce61 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -608,7 +608,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by */ const CargoSpec *cs = GetCargo(v->cargo_type); - return (cs->classes << 16) | (cs->weight << 8) | cs->bitnum; + return (cs->classes << 16) | (cs->weight << 8) | GetEngineGRF(v->engine_type)->cargo_map[v->cargo_type]; } case 0x48: return GetVehicleTypeInfo(v->engine_type); /* Vehicle Type Info */ |