aboutsummaryrefslogtreecommitdiff
path: root/advtrains_train_subway
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-02-05 10:32:08 +0100
committerorwell96 <orwell@bleipb.de>2019-02-05 10:32:08 +0100
commitbadd915121ee45a15321ead099208f7a26dc53fb (patch)
treed5068cfca2c387ea3d5d4933e674b5b52f9bd246 /advtrains_train_subway
parentbe09acf5e2da6b71d0ba3449421ee982b2d53331 (diff)
downloadadvtrains-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.lua4
-rw-r--r--advtrains_train_subway/textures/advtrains_subway_wagon_lineX.pngbin0 -> 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
new file mode 100644
index 0000000..6f74877
--- /dev/null
+++ b/advtrains_train_subway/textures/advtrains_subway_wagon_lineX.png
Binary files differ