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

Fix: Don't consider regression AIs when starting a random AI (#9164)

This commit is contained in:
Loïc Guilloux
2021-05-01 16:19:14 +02:00
committed by Charles Pigott
parent f3b8ff0e17
commit 5e7f9cc22c
2 changed files with 2 additions and 0 deletions
regression
regression
stationlist

@@ -7,6 +7,7 @@ class Regression extends AIInfo {
function GetAPIVersion() { return "1.11"; } function GetAPIVersion() { return "1.11"; }
function GetDate() { return "2007-03-18"; } function GetDate() { return "2007-03-18"; }
function CreateInstance() { return "Regression"; } function CreateInstance() { return "Regression"; }
function UseAsRandomAI() { return false; }
} }
RegisterAI(Regression()); RegisterAI(Regression());

@@ -7,6 +7,7 @@ class StationList extends AIInfo {
function GetAPIVersion() { return "1.11"; } function GetAPIVersion() { return "1.11"; }
function GetDate() { return "2007-03-18"; } function GetDate() { return "2007-03-18"; }
function CreateInstance() { return "StationList"; } function CreateInstance() { return "StationList"; }
function UseAsRandomAI() { return false; }
} }
RegisterAI(StationList()); RegisterAI(StationList());