diff options
author | orwell96 <orwell@bleipb.de> | 2018-07-04 14:04:41 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-07-04 14:04:41 +0200 |
commit | 9586a4d70922e24ba45ef018fc48455f31c4cfbb (patch) | |
tree | d781f1d4b32dc237da2c1f3a6b1f33cb2a71ec02 /advtrains/trainlogic.lua | |
parent | 820503ba81b709cecd86d621dd68e7701fe10222 (diff) | |
download | advtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.tar.gz advtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.tar.bz2 advtrains-9586a4d70922e24ba45ef018fc48455f31c4cfbb.zip |
Add off-track train flag, fixes wagon object property reset on reversing
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 6c00fa5..e21e9a0 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -283,7 +283,7 @@ function advtrains.train_step_b(id, train, dtime) --apply off-track handling: local front_off_track = train.index>train.path_trk_f local back_off_track=train.end_index<train.path_trk_b - local pprint + train.off_track = front_off_track or back_off_track if front_off_track then tarvel_cap=0 |