1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-14 10:09:11 +00:00

(svn r19591) -Add: [NoAI] AIRail::GetMaxSpeed(RailType) to get the speed limit of railtypes

This commit is contained in:
yexo
2010-04-09 12:02:50 +00:00
parent 737b003c8a
commit a7e31778b3
5 changed files with 22 additions and 0 deletions

View File

@@ -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));
}
}

View File

@@ -7208,6 +7208,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
ListDump:
RailType: 0
IsRailTypeAvailable(): true
GetMaxSpeed(): 0
--Road--
Road