From c3c5431412ddb65e08f55e56e1f51fb442b746b0 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 8 Dec 2018 17:12:57 +0100 Subject: Shunt signals (not exactly Ks), along with fixes in other components that those rely on --- advtrains/trainhud.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'advtrains/trainhud.lua') diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index 407518f..8630d62 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -197,13 +197,14 @@ function advtrains.hud_train_format(train, flip) secondLine="ATC"..b..": "..tvels..ad..(train.atc_command or "") else secondLine = "Manual operation" + if train.ctrl.lzb then + secondLine = "-!- Safety override -!-" + end end - if train.ctrl.lzb then - secondLine = "-!- Safety override -!-" - end + local shtind = train.is_shunt and "S" or ">" 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" + firstLine=attrans("Speed:").." |"..string.rep("+", vel)..string.rep("_", res-vel).."|"..string.rep("_", max-res)..shtind.." "..vel_kmh.." km/h" if train.speed_restriction == 0 then firstLine = "OVERRUN RED SIGNAL! Examine situation and reverse train to move again." end -- cgit v1.2.3