summaryrefslogtreecommitdiff
path: root/train_cmd.c
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
commit7715deec3d18e01a237d6a8f1dfcf34371269701 (patch)
treef0b7357cde7bfd2bcef2b23568f76a497746e37d /train_cmd.c
parent170de2019a0cb7dd12dc2f0e24f8b60e49e483f1 (diff)
downloadopenttd-7715deec3d18e01a237d6a8f1dfcf34371269701.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 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index c85c90540..7ca2ba5db 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -961,7 +961,7 @@ int32 CmdStartStopTrain(int x, int y, uint32 flags, uint32 p1, uint32 p2)
* engine is 'started', first 'close' that before 'closing' our
* searched engine
*/
-static Vehicle *GetRearEngine(const Vehicle *v, EngineID engine)
+Vehicle *GetRearEngine(const Vehicle *v, EngineID engine)
{
Vehicle *u;
int en_count = 1;