diff options
author | yexo <yexo@openttd.org> | 2010-12-29 23:20:12 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-12-29 23:20:12 +0000 |
commit | 5b25e620dd747d35b024d6d244be9fc7002e38b0 (patch) | |
tree | 6b50152523558815c8797d310f271816a6fd2dd0 /bin/ai | |
parent | c986325763e1387b7e7fc358af91c2341a038dbe (diff) | |
download | openttd-5b25e620dd747d35b024d6d244be9fc7002e38b0.tar.xz |
(svn r21663) -Add: [NoAI]: AIRail::GetName() to get the name of a railtype
Diffstat (limited to 'bin/ai')
-rw-r--r-- | bin/ai/regression/regression.nut | 1 | ||||
-rw-r--r-- | bin/ai/regression/regression.txt | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/bin/ai/regression/regression.nut b/bin/ai/regression/regression.nut index f861b3a80..5494c1b7a 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -1028,6 +1028,7 @@ function Regression::RailTypeList() print(" ListDump:"); for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) { print(" RailType: " + i); + print(" GetName(): " + AIRail.GetName(i)); print(" IsRailTypeAvailable(): " + AIRail.IsRailTypeAvailable(i)); print(" GetMaxSpeed(): " + AIRail.GetMaxSpeed(i)); } diff --git a/bin/ai/regression/regression.txt b/bin/ai/regression/regression.txt index d0583a14f..9877647fc 100644 --- a/bin/ai/regression/regression.txt +++ b/bin/ai/regression/regression.txt @@ -7209,6 +7209,7 @@ ERROR: IsEnd() is invalid as Begin() is never called Count(): 1 ListDump: RailType: 0 + GetName(): Railway construction IsRailTypeAvailable(): true GetMaxSpeed(): 0 |