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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -7208,6 +7208,7 @@ ERROR: IsEnd() is invalid as Begin() is never called
|
||||
ListDump:
|
||||
RailType: 0
|
||||
IsRailTypeAvailable(): true
|
||||
GetMaxSpeed(): 0
|
||||
|
||||
--Road--
|
||||
Road
|
||||
|
Reference in New Issue
Block a user