Changeset - r9465:7b67af62d659
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2008-06-05 07:38:22
peter1138@openttd.org
(svn r13385) -Fix (r12137): In the purchase list, CB36 for capacity was not called for the first part of rail and road vehicles.
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/articulated_vehicles.cpp
Show inline comments
 
@@ -40,11 +40,11 @@ uint16 *GetCapacityOfArticulatedParts(En
 

	
 
	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;
0 comments (0 inline, 0 general)