diff options
author | orwell <orwell@bleipb.de> | 2025-01-07 22:01:05 +0100 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-01-07 22:01:05 +0100 |
commit | ee5236459a9fa54919306bf5277bd3f798a859ca (patch) | |
tree | 319001a2692b7381d4e36bbaac643b46d473d0b4 | |
parent | 5c10aa2bc051d56b0eda33d1c3e449cfbf896e80 (diff) | |
download | advtrains-ee5236459a9fa54919306bf5277bd3f798a859ca.tar.gz advtrains-ee5236459a9fa54919306bf5277bd3f798a859ca.tar.bz2 advtrains-ee5236459a9fa54919306bf5277bd3f798a859ca.zip |
Let up button clear the disable_ars flag on train
-rw-r--r-- | advtrains/trainhud.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/advtrains/trainhud.lua b/advtrains/trainhud.lua index ce4b913..c133a54 100644 --- a/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua @@ -50,6 +50,10 @@ function advtrains.on_control_change(pc, train, flip) train.ctrl_user = 1 act=true end + if train.ars_disable and pc.up then + -- up clears ars disable flag in any situation + train.ars_disable = nil + end -- If atc command set, only "Jump" key can clear command. To prevent accidental control. if train.tarvelocity or train.atc_command then return |