From 5b25e620dd747d35b024d6d244be9fc7002e38b0 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 29 Dec 2010 23:20:12 +0000 Subject: (svn r21663) -Add: [NoAI]: AIRail::GetName() to get the name of a railtype --- bin/ai/regression/regression.nut | 1 + bin/ai/regression/regression.txt | 1 + 2 files changed, 2 insertions(+) (limited to 'bin/ai') 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 -- cgit v1.2.3-70-g09d2