diff options
author | maedhros <maedhros@openttd.org> | 2007-06-11 14:00:16 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-11 14:00:16 +0000 |
commit | c186f91cbd68a08494b8e2ab1dda4eccb4175982 (patch) | |
tree | 890b370c5bc0ffbb3bd5a9eb55a4b0a3117acd29 /src/train_cmd.cpp | |
parent | 4cd71ef4fe098486744d13643ea7cf77d938e5c8 (diff) | |
download | openttd-c186f91cbd68a08494b8e2ab1dda4eccb4175982.tar.xz |
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 8093cf331..68be61c99 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -576,7 +576,7 @@ static int32 CmdBuildRailWagon(EngineID engine, TileIndex tile, uint32 flags) v->group_id = DEFAULT_GROUP; - AddArticulatedParts(vl); + AddArticulatedParts(vl, VEH_TRAIN); _new_vehicle_id = v->index; @@ -755,7 +755,7 @@ int32 CmdBuildRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) vl[0]->u.rail.other_multiheaded_part = vl[1]; vl[1]->u.rail.other_multiheaded_part = vl[0]; } else { - AddArticulatedParts(vl); + AddArticulatedParts(vl, VEH_TRAIN); } TrainConsistChanged(v); |