From c1c7d104c0fa9a501c57650c45a774451eb25aed Mon Sep 17 00:00:00 2001 From: autocommitter Date: Tue, 25 Mar 2025 00:00:02 +0100 Subject: State at 2025-03-25 --- subway/init_code.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'subway/init_code.lua') diff --git a/subway/init_code.lua b/subway/init_code.lua index cc77426..bf750ca 100644 --- a/subway/init_code.lua +++ b/subway/init_code.lua @@ -231,8 +231,13 @@ end F.stn_union=function(line1, prev1, prev2, this, next, doors, dps, osig, ret_sw, ret_st, nohalt, waittime) if not atc_id then - atc_send("B0") - error("Train has disappeared!") + -- orwell 2025-03-24 + if (event.int and event.message=="ready") then + print(this,": Missing train on ready!") + interrupt(F.rant(), "ready") + end + -- otherwise ignore + return end if not atc_arrow then atc_send("B0") -- cgit v1.2.3