diff options
Diffstat (limited to 'advtrains_train_subway')
-rw-r--r-- | advtrains_train_subway/init.lua | 4 | ||||
-rw-r--r-- | advtrains_train_subway/textures/advtrains_subway_wagon_lineX.png | bin | 0 -> 1244 bytes |
2 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" diff --git a/advtrains_train_subway/textures/advtrains_subway_wagon_lineX.png b/advtrains_train_subway/textures/advtrains_subway_wagon_lineX.png Binary files differnew file mode 100644 index 0000000..6f74877 --- /dev/null +++ b/advtrains_train_subway/textures/advtrains_subway_wagon_lineX.png |