summaryrefslogtreecommitdiff
path: root/auto_yards
diff options
context:
space:
mode:
authorautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:41 +0200
committerautocommitter <autocommitter@linux-forks.de>2024-04-22 14:57:41 +0200
commit81cc5416a111260d21e63b1029864914ee3709f7 (patch)
tree96af16717e57c48cf1646c888cc3ca7dd384ec31 /auto_yards
parent8e22d662e526a44b9832490d1a9f4d0ff6115609 (diff)
downloadluaatc_envs-81cc5416a111260d21e63b1029864914ee3709f7.tar.gz
luaatc_envs-81cc5416a111260d21e63b1029864914ee3709f7.tar.bz2
luaatc_envs-81cc5416a111260d21e63b1029864914ee3709f7.zip
State at 2022-06-16
Diffstat (limited to 'auto_yards')
-rw-r--r--auto_yards/init_code.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 64c0773..cdeacce 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -170,7 +170,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
end
- if event.train then
+ if event.train and atc_arrow then
if F.indicator(yard.active_indicator_pos) then
print("Train "..atc_id.." has arrived at "..yard_id.." yard and has to wait for the yard to deactivate.")
schedule_in(";10","recheck")