(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
This commit is contained in:
bjarni
2005-11-04 20:52:03 +00:00
parent d42b7649a4
commit c8ea743e47
3 changed files with 61 additions and 13 deletions

View File

@@ -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);