summaryrefslogtreecommitdiff
path: root/auto_yards/init_code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'auto_yards/init_code.lua')
-rw-r--r--auto_yards/init_code.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 30b1be9..2c3d631 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -13,6 +13,11 @@ if event.init then
dir_indicator_pos = POS(-2009,3,-1099),
error_indicator_pos = POS(-1999,3,-1099),
},
+ IP = {
+ active_indicator_pos = POS(1179,16,3848),
+ dir_indicator_pos = POS(1179,16,3855),
+ error_indicator_pos = POS(1179,16,3850),
+ },
-- HY = {
-- active_indicator_pos = POS(-4025,14,-2659),
-- dir_indicator_pos = POS(-4025,13,-2665),
@@ -149,6 +154,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
else
enter_yard()
+ return true
end
end
@@ -158,6 +164,7 @@ F.yard_arrival = function(yard_id,this_dir) -- arrow points towards yard
return
else
enter_yard()
+ return true
end
end
end
@@ -246,7 +253,7 @@ F.headshunt_yard = function(yard_id,this_dir) -- arrow points toward yard
atc_set_ars_disable(true)
F.remove_rc({yard_id.."_HEADSHUNT"})
if not F.has_rc(yard_id.."_FINAL_COLLECT") then
- if not F.has_rc(yard_id.."_DEPART") then
+ if not F.has_rc(yard_id.."_DEPART") then -- MOST TRAINS. only set when train wants to depart, otherwise train will start the reverse countdown
schedule_in(";01",atc_id)
return
else