mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-31 11:23:21 +00:00
(svn r15597) -Fix (r15563): regression wasn't updated after the removal of AIIndustry::GetMaxIndustryID().
This commit is contained in:
parent
52f5717a66
commit
f5a07faf87
@ -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));
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user