Mercurial > hg > openttd
changeset 9465:f9cec45c1dbe draft
(svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 05 Jun 2008 07:38:22 +0000 |
parents | 07bd66654e58 |
children | f81fe8c0065a |
files | src/articulated_vehicles.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/articulated_vehicles.cpp +++ b/src/articulated_vehicles.cpp @@ -40,11 +40,11 @@ if (type == VEH_TRAIN) { const RailVehicleInfo *rvi = RailVehInfo(engine); - capacity[rvi->cargo_type] = rvi->capacity; + capacity[rvi->cargo_type] = GetEngineProperty(engine, 0x14, rvi->capacity); if (rvi->railveh_type == RAILVEH_MULTIHEAD) capacity[rvi->cargo_type] += rvi->capacity; } else if (type == VEH_ROAD) { const RoadVehicleInfo *rvi = RoadVehInfo(engine); - capacity[rvi->cargo_type] = rvi->capacity; + capacity[rvi->cargo_type] = GetEngineProperty(engine, 0x0F, rvi->capacity); } if (!HasBit(EngInfo(engine)->callbackmask, CBM_VEHICLE_ARTIC_ENGINE)) return capacity;