diff options
author | frosch <frosch@openttd.org> | 2009-10-06 19:52:38 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-10-06 19:52:38 +0000 |
commit | 9a9d0ee7c0234ed2ecec490f72746622926e8fe7 (patch) | |
tree | f9d050353f4b07db288a61cec9568cb002b95c9e /src/engine_gui.cpp | |
parent | 1e2dc255829ecf9dad6be4ef88cbc3646a3d4675 (diff) | |
download | openttd-9a9d0ee7c0234ed2ecec490f72746622926e8fe7.tar.xz |
(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r-- | src/engine_gui.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index 43125c4d4..38a4dfa8e 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -122,11 +122,11 @@ void ShowEnginePreviewWindow(EngineID engine) AllocateWindowDescFront<EnginePreviewWindow>(&_engine_preview_desc, engine); } -uint GetTotalCapacityOfArticulatedParts(EngineID engine, VehicleType type) +uint GetTotalCapacityOfArticulatedParts(EngineID engine) { uint total = 0; - CargoArray cap = GetCapacityOfArticulatedParts(engine, type); + CargoArray cap = GetCapacityOfArticulatedParts(engine); for (CargoID c = 0; c < NUM_CARGO; c++) { total += cap[c]; } @@ -143,7 +143,7 @@ static StringID GetTrainEngineInfoString(const Engine *e) SetDParam(4, e->GetRunningCost()); - uint capacity = GetTotalCapacityOfArticulatedParts(e->index, VEH_TRAIN); + uint capacity = GetTotalCapacityOfArticulatedParts(e->index); if (capacity != 0) { SetDParam(5, e->GetDefaultCargoType()); SetDParam(6, capacity); @@ -180,7 +180,7 @@ static StringID GetRoadVehEngineInfoString(const Engine *e) { SetDParam(0, e->GetCost()); SetDParam(1, e->GetDisplayMaxSpeed()); - uint capacity = GetTotalCapacityOfArticulatedParts(e->index, VEH_ROAD); + uint capacity = GetTotalCapacityOfArticulatedParts(e->index); if (capacity != 0) { SetDParam(2, e->GetDefaultCargoType()); SetDParam(3, capacity); |