aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2017-10-25 12:33:12 +0200
committerorwell96 <orwell@bleipb.de>2017-10-25 12:34:49 +0200
commitc5256fb3aa64ef0b287c2e59460af92deaebdbe5 (patch)
tree3ffb5e8e513785c0a256bb1ee833ed577d95a38d /advtrains/trainlogic.lua
parente4b3d293d299cfe43b116ed3d3afd927b915329c (diff)
downloadadvtrains-c5256fb3aa64ef0b287c2e59460af92deaebdbe5.tar.gz
advtrains-c5256fb3aa64ef0b287c2e59460af92deaebdbe5.tar.bz2
advtrains-c5256fb3aa64ef0b287c2e59460af92deaebdbe5.zip
Some workaround fixes for Linuxworks server
Trains no longer get deleted when there's no rail Fast item to create subway train
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua6
1 files changed, 2 insertions, 4 deletions
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