(svn r23486) -Fix (r22764): 3 for the price of 1: fix up ScriptTile::GetTownAuthority() (tnx to Torrasque for reporting)

This commit is contained in:
truebrain
2011-12-10 21:07:04 +00:00
parent 14c6a7465a
commit a8960f64be
3 changed files with 352 additions and 5 deletions

View File

@@ -1391,11 +1391,19 @@ function Regression::TileList()
for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) {
print(" " + i + " => " + list.GetValue(i));
}
list.AddRectangle(31895 - 256 * 5, 256 * 5 + 31895 + 8);
list.Valuate(AITile.GetOwner);
print(" GetOwner() ListDump:");
for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) {
print(" " + i + " => " + list.GetValue(i));
}
list.Valuate(AITile.GetTownAuthority);
print(" GetTownAuthority() ListDump:");
for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) {
print(" " + i + " => " + list.GetValue(i));
}
list.Valuate(AITile.GetClosestTown);
print(" GetClosestTown() ListDump:");
for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) {