mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Fix 313c6c45aa: [Script] Return rail types as list instead of bitmask. (#14617)
This is more idiomatic for scripts, and avoids exposing internal representation.
This commit is contained in:
@@ -487,6 +487,13 @@ function Regression::Engine()
|
||||
print(" GetRailType(): " + AIEngine.GetRailType(i));
|
||||
print(" GetRoadType(): " + AIEngine.GetRoadType(i));
|
||||
print(" GetPlaneType(): " + AIEngine.GetPlaneType(i));
|
||||
local railtypes = AIEngine.GetAllRailTypes(i);
|
||||
print(" GetAllRailTypes(): " + (railtypes == null ? "null" : "instance"));
|
||||
if (railtypes != null) {
|
||||
foreach(t in railtypes) {
|
||||
print(" " + t);
|
||||
}
|
||||
}
|
||||
}
|
||||
print(" Valid Engines: " + j);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user