diff options
author | smatz <smatz@openttd.org> | 2009-05-13 20:30:46 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-05-13 20:30:46 +0000 |
commit | c0ed9f779b7c21acf868b30782f6d7e98b919ca1 (patch) | |
tree | 8cfba20a65126c320e4a29169271cf50c61996e3 | |
parent | 0274886ae11171748030abb0e6cae9607494f200 (diff) | |
download | openttd-c0ed9f779b7c21acf868b30782f6d7e98b919ca1.tar.xz |
(svn r16301) -Cleanup: remove unused parameter
-rw-r--r-- | src/train_cmd.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index f95aabc38..c2686aa38 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -743,7 +743,7 @@ static void NormalizeTrainVehInDepot(const Vehicle *u) } } -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 @@ static void AddRearEngineToMultiheadedTrain(Vehicle *v, Vehicle *u, bool buildin 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 @@ CommandCost CmdBuildRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, 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 |