From f5a07faf871d5b0ff3920d40c72570bc66bfdbed Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 1 Mar 2009 23:22:17 +0000 Subject: (svn r15597) -Fix (r15563): regression wasn't updated after the removal of AIIndustry::GetMaxIndustryID(). --- bin/ai/regression/regression.nut | 5 +++-- bin/ai/regression/regression.txt | 11 ----------- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'bin') diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index 87a0e0e58..d873d3708 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -538,9 +538,10 @@ function Regression::Industry() print(""); print("--Industry--"); - print(" GetMaxIndustryID(): " + AIIndustry.GetMaxIndustryID()); print(" GetIndustryCount(): " + AIIndustry.GetIndustryCount()); - for (local i = -1; i < AIIndustry.GetMaxIndustryID() + 1; i++) { + local list = AIIndustryList(); + list.Sort(AIAbstractList.SORT_BY_ITEM, true); + for (local i = list.Begin(); list.HasNext(); i = list.Next()) { if (AIIndustry.IsValidIndustry(i)) j++; print(" Industry " + i); print(" IsValidIndustry(): " + AIIndustry.IsValidIndustry(i)); diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt index 47c52a3fb..9c58e8965 100644 --- a/bin/ai/regression/regression.txt +++ b/bin/ai/regression/regression.txt @@ -5797,13 +5797,7 @@ HasWagonRemoval(): false --Industry-- - GetMaxIndustryID(): 71 GetIndustryCount(): 71 - Industry -1 - IsValidIndustry(): false - GetName(): (null : 0x00000000) - GetLocation(): -1 - IsCargoAccepted(): false Industry 0 IsValidIndustry(): true GetName(): Kennville Oil Refinery @@ -6513,11 +6507,6 @@ GetLastMonthProduction(): -1 GetLastMonthTransported(): -1 GetStockpiledCargo(): 0 - Industry 71 - IsValidIndustry(): false - GetName(): (null : 0x00000000) - GetLocation(): -1 - IsCargoAccepted(): false Valid Industries: 71 GetIndustryCount(): 71 -- cgit v1.2.3-70-g09d2