diff options
author | orwell <orwell@bleipb.de> | 2025-06-23 23:06:44 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2025-06-23 23:09:15 +0200 |
commit | e04728f0424d4e42943fc187f295eb62a73bc5ce (patch) | |
tree | 99f6b82bc7bba4bbef5138e55b940d3a33bc4e2b /advtrains/trainlogic.lua | |
parent | 67511ec1f13023a402af69a4e5ce36c8503b344c (diff) | |
download | advtrains-e04728f0424d4e42943fc187f295eb62a73bc5ce.tar.gz advtrains-e04728f0424d4e42943fc187f295eb62a73bc5ce.tar.bz2 advtrains-e04728f0424d4e42943fc187f295eb62a73bc5ce.zip |
Get door closing time from wagon definition, no longer user configurable, and restore waitsig in stoprail atc command
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r-- | advtrains/trainlogic.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index c0ac179..559c029 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -1048,6 +1048,7 @@ function advtrains.update_trainpart_properties(train_id, invert_flipstate) --FIX: deep-copy the table!!! train.max_speed=20 train.extent_h = 0; + train.door_operation_time = 1 local rel_pos=0 local count_l=0 @@ -1088,6 +1089,7 @@ function advtrains.update_trainpart_properties(train_id, invert_flipstate) train.max_speed=math.min(train.max_speed, wagon.max_speed) train.extent_h = math.max(train.extent_h, wagon.extent_h or 1); + train.door_operation_time = math.max(train.door_operation_time, wagon.door_operation_time or 2) end end train.trainlen = rel_pos |