Fix #12973: Don't exclude high score after using sandbox
[openttd-github.git] / bin / game / compat_12.nut
bloba11cd04a2365529ff8bb35df26dc6b3077435be0
1 /*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6 */
8 GSLog.Info("12 API compatibility in effect.");
10 /* 13 really checks RoadType against RoadType */
11 GSRoad._HasRoadType <- GSRoad.HasRoadType;
12 GSRoad.HasRoadType <- function(tile, road_type)
14 local list = GSRoadTypeList(GSRoad.GetRoadTramType(road_type));
15 foreach (rt, _ in list) {
16 if (GSRoad._HasRoadType(tile, rt)) {
17 return true;
20 return false;