mirror of https://github.com/OpenTTD/OpenTTD
(svn r15493) -Fix (r15486): Forgot to update regression.
parent
2b221f5afc
commit
ab288d3bdb
|
@ -1306,9 +1306,10 @@ function Regression::Town()
|
||||||
|
|
||||||
print("");
|
print("");
|
||||||
print("--Town--");
|
print("--Town--");
|
||||||
print(" GetMaxTownID(): " + AITown.GetMaxTownID());
|
|
||||||
print(" GetTownCount(): " + AITown.GetTownCount());
|
print(" GetTownCount(): " + AITown.GetTownCount());
|
||||||
for (local i = -1; i < AITown.GetMaxTownID() + 1; i++) {
|
local list = AITownList();
|
||||||
|
list.Sort(AIAbstractList.SORT_BY_ITEM, true);
|
||||||
|
for (local i = list.Begin(); list.HasNext(); i = list.Next()) {
|
||||||
if (AITown.IsValidTown(i)) j++;
|
if (AITown.IsValidTown(i)) j++;
|
||||||
print(" Town " + i);
|
print(" Town " + i);
|
||||||
print(" IsValidTown(): " + AITown.IsValidTown(i));
|
print(" IsValidTown(): " + AITown.IsValidTown(i));
|
||||||
|
|
|
@ -7011,15 +7011,7 @@
|
||||||
33411 => 0
|
33411 => 0
|
||||||
|
|
||||||
--Town--
|
--Town--
|
||||||
GetMaxTownID(): 31
|
|
||||||
GetTownCount(): 28
|
GetTownCount(): 28
|
||||||
Town -1
|
|
||||||
IsValidTown(): false
|
|
||||||
GetName(): (null : 0x00000000)
|
|
||||||
GetPopulation(): -1
|
|
||||||
GetLocation(): -1
|
|
||||||
GetHouseCount(): -1
|
|
||||||
GetRating(): -1
|
|
||||||
Town 0
|
Town 0
|
||||||
IsValidTown(): true
|
IsValidTown(): true
|
||||||
GetName(): Planfield
|
GetName(): Planfield
|
||||||
|
@ -7216,34 +7208,6 @@
|
||||||
GetLocation(): 45525
|
GetLocation(): 45525
|
||||||
GetHouseCount(): 19
|
GetHouseCount(): 19
|
||||||
GetRating(): 0
|
GetRating(): 0
|
||||||
Town 28
|
|
||||||
IsValidTown(): false
|
|
||||||
GetName(): (null : 0x00000000)
|
|
||||||
GetPopulation(): -1
|
|
||||||
GetLocation(): -1
|
|
||||||
GetHouseCount(): -1
|
|
||||||
GetRating(): -1
|
|
||||||
Town 29
|
|
||||||
IsValidTown(): false
|
|
||||||
GetName(): (null : 0x00000000)
|
|
||||||
GetPopulation(): -1
|
|
||||||
GetLocation(): -1
|
|
||||||
GetHouseCount(): -1
|
|
||||||
GetRating(): -1
|
|
||||||
Town 30
|
|
||||||
IsValidTown(): false
|
|
||||||
GetName(): (null : 0x00000000)
|
|
||||||
GetPopulation(): -1
|
|
||||||
GetLocation(): -1
|
|
||||||
GetHouseCount(): -1
|
|
||||||
GetRating(): -1
|
|
||||||
Town 31
|
|
||||||
IsValidTown(): false
|
|
||||||
GetName(): (null : 0x00000000)
|
|
||||||
GetPopulation(): -1
|
|
||||||
GetLocation(): -1
|
|
||||||
GetHouseCount(): -1
|
|
||||||
GetRating(): -1
|
|
||||||
Valid Towns: 28
|
Valid Towns: 28
|
||||||
GetTownCount(): 28
|
GetTownCount(): 28
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue