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.lua13
1 files changed, 5 insertions, 8 deletions
diff --git a/auto_yards/init_code.lua b/auto_yards/init_code.lua
index 595caa2..4a66f6e 100644
--- a/auto_yards/init_code.lua
+++ b/auto_yards/init_code.lua
@@ -19,9 +19,6 @@ if event.init then
error_indicator_pos = POS(-4025,13,-2671),
headshunt_max = 5,
- --temporary while testing
- notify = {},
- notify_pos = POS(-2006,3,-1099)
},
BY = {
active_indicator_pos = POS(-2002,3,-1099),
@@ -29,7 +26,7 @@ if event.init then
error_indicator_pos = POS(-1999,3,-1099),
headshunt_max = 5,
notify = {},
- notify_pos = POS(-2006,3,-1099)
+ notify_pos = POS(-2004,2,-1101)
},
IP = {
active_indicator_pos = POS(1179,16,3848),
@@ -37,9 +34,6 @@ if event.init then
error_indicator_pos = POS(1179,16,3850),
headshunt_max = 5,
- --temporary while testing
- notify = {},
- notify_pos = POS(-2006,3,-1099)
},
-- HY = {
-- active_indicator_pos = POS(-4025,14,-2659),
@@ -370,8 +364,11 @@ F.headshunt_exit = function(yard_id,this_dir) -- arrow points out of yard
F.remove_rc_match(yard_id.."_LOCOS_%d+")
F.remove_rc_match(yard_id.."_WAGONS_%d+")
- if yard.notify_pos and yard.notify then
+ if yard.notify_pos then
interrupt_pos(yard.notify_pos,"notify")
+ print("init notifications")
+ else
+ print("No notification panel configured")
end
if F.has_rc(yard_id.."_HAS_RTS") then --reinsert the RTS flag to fully return RC list to starting