(svn r17897) -Fix [FS#3255]: CB15 and CB36 (capacity) were not always called when they should.
-Codechange: Move capacity calculation to a single function for all vehicle types, so the behaviour can be kept consistent easier.
This commit is contained in:
@@ -28,15 +28,6 @@ enum AircraftSubType {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Calculates cargo capacity based on an aircraft's passenger
|
||||
* and mail capacities.
|
||||
* @param cid Which cargo type to calculate a capacity for.
|
||||
* @param avi Which engine to find a cargo capacity for.
|
||||
* @return New cargo capacity value.
|
||||
*/
|
||||
uint16 AircraftDefaultCargoCapacity(CargoID cid, const AircraftVehicleInfo *avi);
|
||||
|
||||
/**
|
||||
* This is the Callback method after the construction attempt of an aircraft
|
||||
* @param success indicates completion (or not) of the operation
|
||||
|
Reference in New Issue
Block a user