summaryrefslogtreecommitdiff
path: root/src/vehicle_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-14 19:17:18 +0000
committerrubidium <rubidium@openttd.org>2009-12-14 19:17:18 +0000
commita190ae9a71cd51d50c03be53d7695b8b85f2bdc0 (patch)
tree9839c6593863802f54fd6ce0d3cdd3201c94e317 /src/vehicle_func.h
parent620ca5e6c18cc0929f255d5ced094f214c6df15a (diff)
downloadopenttd-a190ae9a71cd51d50c03be53d7695b8b85f2bdc0.tar.xz
(svn r18498) -Fix [FS#2616]: cloning of vehicles could create vehicles with invalid cargo sub types for the build year of the vehicle. Fall back to another cargo sub type with the exact same name, otherwise fallback to cargo sub type 0.
Diffstat (limited to 'src/vehicle_func.h')
-rw-r--r--src/vehicle_func.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle_func.h b/src/vehicle_func.h
index b709dba14..b37f8e56e 100644
--- a/src/vehicle_func.h
+++ b/src/vehicle_func.h
@@ -42,6 +42,7 @@ byte VehicleRandomBits();
void ResetVehiclePosHash();
void ResetVehicleColourMap();
+byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for);
CommandCost RefitVehicle(Vehicle *v, bool only_this, CargoID new_cid, byte new_subtype, DoCommandFlag flags);
void ViewportAddVehicles(DrawPixelInfo *dpi);