Skip to content

Commit 47a6165

Browse files
committed
bg: bdz: Fix script
1 parent b71dcdb commit 47a6165

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/bg-bdz.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
-- SPDX-License-Identifier: AGPL-3.0-or-later
33

44
function process_route(route)
5-
if table.find({"BV", "MBV"}, route:get_id()) then
5+
if route:get_id() == "BV" or route:get_id() == "MBV" then
66
route:set_route_type(102)
7-
elseif table.find({"PV", "KPV"}, route:get_id()) then
7+
elseif route:get_id() == "PV" or route:get_id() == "KPV" then
88
route:set_route_type(106)
99
elseif route:get_id() == "A" then
1010
route:set_route_type(714)
@@ -13,4 +13,4 @@ end
1313

1414
function process_trip(trip)
1515
trip:set_display_name(trip:get_route():get_short_name() .. " " .. trip:get_short_name())
16-
end
16+
end

0 commit comments

Comments
 (0)