aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trainlogic.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-01-22 12:11:35 +0100
committerorwell96 <orwell@bleipb.de>2019-01-22 12:11:35 +0100
commite2ae763dba3f7f609eccd9b8dd378304fad24b0d (patch)
tree9592789bbf7224be4e2bc9a765ec4885f4c97c2e /advtrains/trainlogic.lua
parentdac65af9839f05aa2b79ad87c3c53118149d54cb (diff)
downloadadvtrains-e2ae763dba3f7f609eccd9b8dd378304fad24b0d.tar.gz
advtrains-e2ae763dba3f7f609eccd9b8dd378304fad24b0d.tar.bz2
advtrains-e2ae763dba3f7f609eccd9b8dd378304fad24b0d.zip
Revert "Correct last commit"
This reverts commit 5f290819cdb78303396f9f89907ebbc66a9d74b3.
Diffstat (limited to 'advtrains/trainlogic.lua')
-rw-r--r--advtrains/trainlogic.lua13
1 files changed, 0 insertions, 13 deletions
diff --git a/advtrains/trainlogic.lua b/advtrains/trainlogic.lua
index e7d8465..9c214bb 100644
--- a/advtrains/trainlogic.lua
+++ b/advtrains/trainlogic.lua
@@ -612,24 +612,11 @@ advtrains.te_register_on_update(function(id, train)
old_index = old_index + 1
local pos = advtrains.round_vector_floor_y(advtrains.path_get(train,old_index))
tnc_call_enter_callback(pos, id, train, old_index)
-
- if not train.path then
- atwarn(id,"@register_on_update missing path")
- atwarn(advtrains.dbg_last_pathclear)
- return
- end
end
while old_end_index < new_end_index do
local pos = advtrains.round_vector_floor_y(advtrains.path_get(train,old_end_index))
tnc_call_leave_callback(pos, id, train, old_end_index)
old_end_index = old_end_index + 1
-
- if not train.path then
- atwarn(id,"@register_on_update missing path")
- atwarn(advtrains.dbg_last_pathclear)
- return
- end
-
end
train.tnc.old_index = new_index
train.tnc.old_end_index = new_end_index