Mercurial > hg > openttd
changeset 11901:ad8901f29746 draft
(svn r16301) -Cleanup: remove unused parameter
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 13 May 2009 20:30:46 +0000 |
parents | 46d45a7511f9 |
children | 5b2be5f84fe8 |
files | src/train_cmd.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -743,7 +743,7 @@ } } -static void AddRearEngineToMultiheadedTrain(Vehicle *v, Vehicle *u, bool building) +static void AddRearEngineToMultiheadedTrain(Vehicle *v, Vehicle *u) { u = new (u) Train(); u->direction = v->direction; @@ -761,10 +761,10 @@ u->cargo_subtype = v->cargo_subtype; u->cargo_cap = v->cargo_cap; u->u.rail.railtype = v->u.rail.railtype; - if (building) v->SetNext(u); + v->SetNext(u); u->engine_type = v->engine_type; u->build_year = v->build_year; - if (building) v->value >>= 1; + v->value >>= 1; u->value = v->value; u->cur_image = 0xAC2; u->random_bits = VehicleRandomBits(); @@ -875,7 +875,7 @@ if (rvi->railveh_type == RAILVEH_MULTIHEAD) { SetMultiheaded(v); - AddRearEngineToMultiheadedTrain(vl[0], vl[1], true); + AddRearEngineToMultiheadedTrain(vl[0], vl[1]); /* Now we need to link the front and rear engines together * other_multiheaded_part is the pointer that links to the other half of the engine * vl[0] is the front and vl[1] is the rear