From a7e31778b3d75f73b740534c6a9d8830104f1a9c Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 9 Apr 2010 12:02:50 +0000 Subject: (svn r19591) -Add: [NoAI] AIRail::GetMaxSpeed(RailType) to get the speed limit of railtypes --- 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 eb9b9667f..5f835c528 100644 --- a/bin/ai/regression/regression.nut +++ b/bin/ai/regression/regression.nut @@ -1027,6 +1027,7 @@ function Regression::RailTypeList() for (local i = list.Begin(); !list.IsEnd(); i = list.Next()) { print(" RailType: " + 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 35d4ed272..611450f46 100644 --- a/bin/ai/regression/regression.txt +++ b/bin/ai/regression/regression.txt @@ -7208,6 +7208,7 @@ ERROR: IsEnd() is invalid as Begin() is never called ListDump: RailType: 0 IsRailTypeAvailable(): true + GetMaxSpeed(): 0 --Road-- Road -- cgit v1.2.3-70-g09d2