aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2017-10-25 10:31:07 +0200
committerorwell96 <orwell@bleipb.de>2017-10-25 10:33:41 +0200
commitc67770833b772e438f81ac80f10f1c46bbeebcfa (patch)
tree446bdf2cf44f283dddfa8f52f2a3099b16b1cf64 /advtrains/init.lua
parentf228e2d30e0d712c6490fb84d4edfadeba8c4cd7 (diff)
downloadadvtrains-c67770833b772e438f81ac80f10f1c46bbeebcfa.tar.gz
advtrains-c67770833b772e438f81ac80f10f1c46bbeebcfa.tar.bz2
advtrains-c67770833b772e438f81ac80f10f1c46bbeebcfa.zip
Fix coupling and collisions in certain cases
If a train moved towards another train, and the other train's step was executed after the first one's, the trains did eventually not collide. Fix by moving the enter_node and collision check to step_b Also change some couple behavior
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 6255780..6f81a40 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -105,6 +105,8 @@ if minetest.settings:get_bool("advtrains_enable_debugging") then
if not context then return end
local text=advtrains.print_concat_table({t, ...})
advtrains.drb_record(context, text)
+
+ --atlog("@@",advtrains.atprint_context_tid,t,...)
end
atdebug=function(t, ...)
local text=advtrains.print_concat_table({t, ...})