aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 17:14:32 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 17:14:32 +0100
commit6c18d5b89a8a043047fc5e722c1fdcb4a7eaebd7 (patch)
tree1a24205aa640d92da265dc148afa9936442372f2
parent6c1ca46d6e6b3b290ca867d4e790ef05f5638e4c (diff)
downloadadvtrains-6c18d5b89a8a043047fc5e722c1fdcb4a7eaebd7.tar.gz
advtrains-6c18d5b89a8a043047fc5e722c1fdcb4a7eaebd7.tar.bz2
advtrains-6c18d5b89a8a043047fc5e722c1fdcb4a7eaebd7.zip
Make "Can't restore train" a log message instead of atwarn()
-rw-r--r--advtrains/trainlogic.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index ff9abf4..7b2e79a 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -253,7 +253,7 @@ function advtrains.train_ensure_init(id, train)
--restore path
if not train.path then
if not train.last_pos then
- atwarn("Train",id,": Restoring path failed, no last_pos set! Train will be disabled. You can try to fix the issue in the save file.")
+ atlog("Train",id,": Restoring path failed, no last_pos set! Train will be disabled. You can try to fix the issue in the save file.")
train.no_step = true
return nil
end
@@ -275,12 +275,12 @@ function advtrains.train_ensure_init(id, train)
local result = advtrains.path_create(train, train.last_pos, train.last_connid or 1, train.last_frac or 0)
if result==false then
- atwarn("Train",id,": Restoring path failed, node at",train.last_pos,"is gone! Train will be disabled. You can try to place a rail at this position and restart the server.")
+ atlog("Train",id,": Restoring path failed, node at",train.last_pos,"is gone! Train will be disabled. You can try to place a rail at this position and restart the server.")
train.no_step = true
return nil
elseif result==nil then
if not train.wait_for_path then
- atwarn("Train",id,": Can't initialize: Waiting for the (yet unloaded) node at",train.last_pos," to be loaded.")
+ atlog("Train",id,": Can't initialize: Waiting for the (yet unloaded) node at",train.last_pos," to be loaded.")
end
train.wait_for_path = true
return false