diff options
author | rubidium <rubidium@openttd.org> | 2009-03-01 23:22:17 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-01 23:22:17 +0000 |
commit | f5a07faf871d5b0ff3920d40c72570bc66bfdbed (patch) | |
tree | 301af394dc797000bce25d532205d00321cdc777 /bin | |
parent | 52f5717a669ce85d528f42c626fb7f14aa9cdd9b (diff) | |
download | openttd-f5a07faf871d5b0ff3920d40c72570bc66bfdbed.tar.xz |
(svn r15597) -Fix (r15563): regression wasn't updated after the removal of AIIndustry::GetMaxIndustryID().
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ai/regression/regression.nut | 5 | ||||
-rw-r--r-- | bin/ai/regression/regression.txt | 11 |
2 files changed, 3 insertions, 13 deletions
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 |