diff options
author | frosch <frosch@openttd.org> | 2009-06-27 18:26:50 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-06-27 18:26:50 +0000 |
commit | 812ad41f23b7ed52a161ed15b15a2af3a7edb41f (patch) | |
tree | 6758cbd7b2a75e135b4e360285445f1807d3b378 /src/ai/api/ai_tilelist.cpp | |
parent | e42deae3a98ead62bf2ab8e76f8e571a2baa951c (diff) | |
download | openttd-812ad41f23b7ed52a161ed15b15a2af3a7edb41f.tar.xz |
(svn r16676) -Codechange: Rename AcceptedCargo to CargoArray and its instances to more meaningful names.
Diffstat (limited to 'src/ai/api/ai_tilelist.cpp')
-rw-r--r-- | src/ai/api/ai_tilelist.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ai/api/ai_tilelist.cpp b/src/ai/api/ai_tilelist.cpp index 8015b96f8..38b99ef9a 100644 --- a/src/ai/api/ai_tilelist.cpp +++ b/src/ai/api/ai_tilelist.cpp @@ -92,12 +92,12 @@ AITileList_IndustryAccepting::AITileList_IndustryAccepting(IndustryID industry_i /* Only add the tile if it accepts the cargo (sometimes just 1 tile of an * industry triggers the acceptance). */ - AcceptedCargo accepts; - ::GetAcceptanceAroundTiles(accepts, cur_tile, 1, 1, radius); + CargoArray acceptance; + ::GetAcceptanceAroundTiles(acceptance, cur_tile, 1, 1, radius); { bool cargo_accepts = false; for (byte j = 0; j < lengthof(i->accepts_cargo); j++) { - if (i->accepts_cargo[j] != CT_INVALID && accepts[i->accepts_cargo[j]] != 0) cargo_accepts = true; + if (i->accepts_cargo[j] != CT_INVALID && acceptance[i->accepts_cargo[j]] != 0) cargo_accepts = true; } if (!cargo_accepts) continue; } @@ -130,12 +130,12 @@ AITileList_IndustryProducing::AITileList_IndustryProducing(IndustryID industry_i /* Only add the tile if it produces the cargo (a bug in OpenTTD makes this * inconsitance). */ - AcceptedCargo produces; - ::GetProductionAroundTiles(produces, cur_tile, 1, 1, radius); + CargoArray produced; + ::GetProductionAroundTiles(produced, cur_tile, 1, 1, radius); { bool cargo_produces = false; for (byte j = 0; j < lengthof(i->produced_cargo); j++) { - if (i->produced_cargo[j] != CT_INVALID && produces[i->produced_cargo[j]] != 0) cargo_produces = true; + if (i->produced_cargo[j] != CT_INVALID && produced[i->produced_cargo[j]] != 0) cargo_produces = true; } if (!cargo_produces) continue; } |