aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainhud.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2018-11-20 11:57:46 +0100
committerorwell96 <orwell@bleipb.de>2018-11-20 11:57:46 +0100
commit37166b5c142b6b3578e589b75b86d2e11345f49d (patch)
treea3f09325dbe4c141d277c11c7a9016a6b711e1bb /advtrains/trainhud.lua
parent8b80742fa5b21392999dbe6a3d259d57068899f3 (diff)
downloadadvtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.tar.gz
advtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.tar.bz2
advtrains-37166b5c142b6b3578e589b75b86d2e11345f49d.zip
Make "Line" property accessible from OBC and gettable via LATC, change subway wagon texture handling
Diffstat (limited to 'advtrains/trainhud.lua')
-rw-r--r--advtrains/trainhud.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua
index 0175410..407518f 100644
--- a/advtrains/trainhud.lua
+++ b/advtrains/trainhud.lua
@@ -202,7 +202,7 @@ function advtrains.hud_train_format(train, flip)
secondLine = "-!- Safety override -!-"
end
- topLine=" ["..mletter[fct].."] {"..levers.."} "..doorstr[(train.door_open or 0) * fct]
+ topLine=" ["..mletter[fct].."] {"..levers.."} "..doorstr[(train.door_open or 0) * fct].." "..(train.line and "L: "..train.line or "")
firstLine=attrans("Speed:").." |"..string.rep("+", vel)..string.rep("_", res-vel).."|"..string.rep("_", max-res).."> "..vel_kmh.." km/h"
if train.speed_restriction == 0 then
firstLine = "OVERRUN RED SIGNAL! Examine situation and reverse train to move again."