summaryrefslogtreecommitdiff
path: root/regression
diff options
context:
space:
mode:
authorLoïc Guilloux <glx22@users.noreply.github.com>2021-05-01 16:19:14 +0200
committerGitHub <noreply@github.com>2021-05-01 16:19:14 +0200
commit376f2509ad5b35910ce2cb949f7ba84d86aed739 (patch)
tree4a1da6d2fcfdb9329263982ad829f32efcc7121c /regression
parent282d5d302dfe81e8a312c96732bb17439a8f8264 (diff)
downloadopenttd-376f2509ad5b35910ce2cb949f7ba84d86aed739.tar.xz
Fix: Don't consider regression AIs when starting a random AI (#9164)
Diffstat (limited to 'regression')
-rw-r--r--regression/regression/info.nut1
-rw-r--r--regression/stationlist/info.nut1
2 files changed, 2 insertions, 0 deletions
diff --git a/regression/regression/info.nut b/regression/regression/info.nut
index 340dcff5c..50c9fa514 100644
--- a/regression/regression/info.nut
+++ b/regression/regression/info.nut
@@ -7,6 +7,7 @@ class Regression extends AIInfo {
function GetAPIVersion() { return "1.12"; }
function GetDate() { return "2007-03-18"; }
function CreateInstance() { return "Regression"; }
+ function UseAsRandomAI() { return false; }
}
RegisterAI(Regression());
diff --git a/regression/stationlist/info.nut b/regression/stationlist/info.nut
index a58fd20ba..0558ccc1f 100644
--- a/regression/stationlist/info.nut
+++ b/regression/stationlist/info.nut
@@ -7,6 +7,7 @@ class StationList extends AIInfo {
function GetAPIVersion() { return "1.12"; }
function GetDate() { return "2007-03-18"; }
function CreateInstance() { return "StationList"; }
+ function UseAsRandomAI() { return false; }
}
RegisterAI(StationList());