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 | 3e326085fa69da20e0a81182cbea4466016eb566 (patch) | |
tree | 890b370c5bc0ffbb3bd5a9eb55a4b0a3117acd29 /src/train_cmd.cpp | |
parent | be0f5cf877bb2d7a74855f8988e50ca09624aabe (diff) | |
download | openttd-3e326085fa69da20e0a81182cbea4466016eb566.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); |