Mercurial > hg > openttd
diff src/train_cmd.cpp @ 6857:0005a9ed1903 draft
(svn r10097) -Feature: Add support for articulated road vehicles, or callbacks 11 and 17 for
road vehicles for those who prefer the technical explanation.
author | maedhros <maedhros@openttd.org> |
---|---|
date | Mon, 11 Jun 2007 14:00:16 +0000 (2007-06-11) |
parents | 26a3c3985d67 |
children | 7ef94b059aec |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -576,7 +576,7 @@ v->group_id = DEFAULT_GROUP; - AddArticulatedParts(vl); + AddArticulatedParts(vl, VEH_TRAIN); _new_vehicle_id = v->index; @@ -755,7 +755,7 @@ 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);