diff options
author | yexo <yexo@openttd.org> | 2010-08-19 15:37:28 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-19 15:37:28 +0000 |
commit | dc303e550bec650220038b727e4915f2e502a5a4 (patch) | |
tree | 3e882c182bd41904d817cef6132358ca370a96ec /src/ai/api/ai_industrytype.cpp | |
parent | 6c7384cabd9ffe684697f98a65a32871500284f8 (diff) | |
download | openttd-dc303e550bec650220038b727e4915f2e502a5a4.tar.xz |
(svn r20563) -Change: [NoAI] rename AIAbstractList to AIList
Diffstat (limited to 'src/ai/api/ai_industrytype.cpp')
-rw-r--r-- | src/ai/api/ai_industrytype.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ai/api/ai_industrytype.cpp b/src/ai/api/ai_industrytype.cpp index 89308141c..0b6e00552 100644 --- a/src/ai/api/ai_industrytype.cpp +++ b/src/ai/api/ai_industrytype.cpp @@ -58,13 +58,13 @@ return industrytype_name; } -/* static */ AIAbstractList *AIIndustryType::GetProducedCargo(IndustryType industry_type) +/* static */ AIList *AIIndustryType::GetProducedCargo(IndustryType industry_type) { if (!IsValidIndustryType(industry_type)) return NULL; const IndustrySpec *ins = ::GetIndustrySpec(industry_type); - AIAbstractList *list = new AIAbstractList(); + AIList *list = new AIList(); for (size_t i = 0; i < lengthof(ins->produced_cargo); i++) { if (ins->produced_cargo[i] != CT_INVALID) list->AddItem(ins->produced_cargo[i]); } @@ -72,13 +72,13 @@ return list; } -/* static */ AIAbstractList *AIIndustryType::GetAcceptedCargo(IndustryType industry_type) +/* static */ AIList *AIIndustryType::GetAcceptedCargo(IndustryType industry_type) { if (!IsValidIndustryType(industry_type)) return NULL; const IndustrySpec *ins = ::GetIndustrySpec(industry_type); - AIAbstractList *list = new AIAbstractList(); + AIList *list = new AIList(); for (size_t i = 0; i < lengthof(ins->accepts_cargo); i++) { if (ins->accepts_cargo[i] != CT_INVALID) list->AddItem(ins->accepts_cargo[i]); } |