From 30e98520e7e6fa17beaf3f1c328fd58e2b19cebc Mon Sep 17 00:00:00 2001 From: orwell96 Date: Mon, 23 Apr 2018 15:51:50 +0200 Subject: Occupation System, new train steps, still incomplete --- advtrains/trainhud.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'advtrains/trainhud.lua') diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index 9b7b9e8..e48e3e4 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -67,14 +67,14 @@ function advtrains.on_control_change(pc, train, flip) if train.door_open ~= 0 then train.door_open = 0 else - train.door_open = -train.movedir + train.door_open = -1 end end if pc.right then if train.door_open ~= 0 then train.door_open = 0 else - train.door_open = train.movedir + train.door_open = 1 end end train.active_control = act @@ -176,7 +176,7 @@ function advtrains.hud_train_format(train, flip) local topLine, firstLine, secondLine - topLine=" ["..mletter[fct*train.movedir].."] {"..levers.."} "..doorstr[(train.door_open or 0) * train.movedir] + topLine=" ["..mletter[fct].."] {"..levers.."} "..doorstr[(train.door_open or 0) * fct] firstLine=attrans("Speed:").." |"..string.rep("+", vel)..string.rep("_", max-vel).."> "..vel_kmh.." km/h" secondLine=attrans("Target:").." |"..string.rep("+", tvel)..string.rep("_", max-tvel).."> "..tvel_kmh.." km/h" -- cgit v1.2.3