From c5256fb3aa64ef0b287c2e59460af92deaebdbe5 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 25 Oct 2017 12:33:12 +0200 Subject: Some workaround fixes for Linuxworks server Trains no longer get deleted when there's no rail Fast item to create subway train --- advtrains/trainlogic.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'advtrains/trainlogic.lua') diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 228c3a0..ea7ea60 100644 --- a/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua @@ -167,8 +167,7 @@ function advtrains.train_step_a(id, train, dtime) atprint("last_pos", advtrains.round_vector_floor_y(train.last_pos), "not loaded and not in ndb, waiting") return nil elseif node_ok==false then - atwarn("Unable to restore train ",id,": No rail at train's position") - advtrains.trains[id]=nil + atprint("Unable to restore train ",id,": No rail at train's position") return false end @@ -186,8 +185,7 @@ function advtrains.train_step_a(id, train, dtime) atprint("last_pos_prev", advtrains.round_vector_floor_y(train.last_pos_prev), "not loaded and not in ndb, waiting") return nil elseif prevnode_ok==false then - atwarn("Unable to restore train ",id,": No rail at train's position") - advtrains.trains[id]=nil + atprint("Unable to restore train ",id,": No rail at train's position") return false end -- cgit v1.2.3