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/ai | |
parent | 1e2dc255829ecf9dad6be4ef88cbc3646a3d4675 (diff) | |
download | openttd-9a9d0ee7c0234ed2ecec490f72746622926e8fe7.tar.xz |
(svn r17728) -Cleanup: Remove some more unneeded/unused parameters.
Diffstat (limited to 'src/ai')
-rw-r--r-- | src/ai/api/ai_engine.cpp | 2 | ||||
-rw-r--r-- | src/ai/api/ai_event_types.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_engine.cpp b/src/ai/api/ai_engine.cpp index bdb96bf56..0be62af1f 100644 --- a/src/ai/api/ai_engine.cpp +++ b/src/ai/api/ai_engine.cpp @@ -75,7 +75,7 @@ switch (e->type) { case VEH_ROAD: case VEH_TRAIN: { - CargoArray capacities = GetCapacityOfArticulatedParts(engine_id, e->type); + CargoArray capacities = GetCapacityOfArticulatedParts(engine_id); for (CargoID c = 0; c < NUM_CARGO; c++) { if (capacities[c] == 0) continue; return capacities[c]; diff --git a/src/ai/api/ai_event_types.cpp b/src/ai/api/ai_event_types.cpp index 2c2b8cb91..4e214431d 100644 --- a/src/ai/api/ai_event_types.cpp +++ b/src/ai/api/ai_event_types.cpp @@ -41,7 +41,7 @@ int32 AIEventEnginePreview::GetCapacity() switch (e->type) { case VEH_ROAD: case VEH_TRAIN: { - CargoArray capacities = GetCapacityOfArticulatedParts(this->engine, e->type); + CargoArray capacities = GetCapacityOfArticulatedParts(this->engine); for (CargoID c = 0; c < NUM_CARGO; c++) { if (capacities[c] == 0) continue; return capacities[c]; |