diff options
Diffstat (limited to 'advtrains_train_subway/init.lua')
-rw-r--r-- | advtrains_train_subway/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains_train_subway/init.lua b/advtrains_train_subway/init.lua index a63b5b5..864fa2f 100644 --- a/advtrains_train_subway/init.lua +++ b/advtrains_train_subway/init.lua @@ -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" |