mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 15:39:09 +00:00
(svn r21663) -Add: [NoAI]: AIRail::GetName() to get the name of a railtype
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user