Add "X" line symbol for subway trains terminating/service trips

master
orwell96 2019-02-05 10:32:08 +01:00
parent be09acf5e2
commit badd915121
2 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ advtrains.register_wagon("subway_wagon", {
--set line number
local line = nil
if train.line then
line = tonumber(string.sub(train.line, 1, 1))
local lint = string.sub(train.line, 1, 1)
line = tonumber(lint)
if lint=="X" then line="X" end
end
if line and line~=self.line_cache then
local new_line_tex="advtrains_subway_wagon.png^advtrains_subway_wagon_line"..line..".png"

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB