diff options
author | orwell96 <orwell@bleipb.de> | 2019-02-05 10:32:08 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2019-02-05 10:32:08 +0100 |
commit | badd915121ee45a15321ead099208f7a26dc53fb (patch) | |
tree | d5068cfca2c387ea3d5d4933e674b5b52f9bd246 /advtrains_train_subway | |
parent | be09acf5e2da6b71d0ba3449421ee982b2d53331 (diff) | |
download | advtrains-badd915121ee45a15321ead099208f7a26dc53fb.tar.gz advtrains-badd915121ee45a15321ead099208f7a26dc53fb.tar.bz2 advtrains-badd915121ee45a15321ead099208f7a26dc53fb.zip |
Add "X" line symbol for subway trains terminating/service trips
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 |