(svn r5146) - NewGRF: Support selection of aircraft default cargo type by checking its refit mask. If aircraft can be refitted to passengers, no change happens, else the first refittable type is chosen. Also use refit capacity to determine the default capacity.

This commit is contained in:
peter1138
2006-06-07 07:20:28 +00:00
parent 4a26eb083b
commit d286235a6a
3 changed files with 76 additions and 0 deletions

View File

@@ -267,6 +267,7 @@ byte VehicleRandomBits(void);
bool CanFillVehicle(Vehicle *v);
bool CanRefitTo(EngineID engine_type, CargoID cid_to);
CargoID FindFirstRefittableCargo(EngineID engine_type);
void ViewportAddVehicles(DrawPixelInfo *dpi);