summaryrefslogtreecommitdiff
path: root/vehicle.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-11-04 20:52:03 +0000
committerbjarni <bjarni@openttd.org>2005-11-04 20:52:03 +0000
commitc8ea743e4779facc0f1c2b8edfdfc98307e31dc9 (patch)
treef0b7357cde7bfd2bcef2b23568f76a497746e37d /vehicle.h
parentd42b7649a43d82407a6a2aae4d2fb86b32556831 (diff)
downloadopenttd-c8ea743e4779facc0f1c2b8edfdfc98307e31dc9.tar.xz
(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles
currently this applies to planes and multiheaded train engines (no more lost airmail) added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo
Diffstat (limited to 'vehicle.h')
-rw-r--r--vehicle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vehicle.h b/vehicle.h
index 9954216ff..0773d9231 100644
--- a/vehicle.h
+++ b/vehicle.h
@@ -325,6 +325,7 @@ void DecreaseVehicleValue(Vehicle *v);
void CheckVehicleBreakdown(Vehicle *v);
void AgeVehicle(Vehicle *v);
void VehicleEnteredDepotThisTick(Vehicle *v);
+Vehicle *GetRearEngine(const Vehicle *v, EngineID engine);
void BeginVehicleMove(Vehicle *v);
void EndVehicleMove(Vehicle *v);