aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-04-28 17:10:25 +0200
committerorwell96 <orwell@bleipb.de>2021-02-10 16:36:24 +0100
commit573d6b06b28c39872c1c036fc191c1c5e4b289a9 (patch)
tree2155c70310ef86c52fd12e8a3c9a89ce5a9cbbdd /advtrains/init.lua
parent8660794ef8392f08fa5be46715abb5dcbd96ca5d (diff)
downloadadvtrains-573d6b06b28c39872c1c036fc191c1c5e4b289a9.tar.gz
advtrains-573d6b06b28c39872c1c036fc191c1c5e4b289a9.tar.bz2
advtrains-573d6b06b28c39872c1c036fc191c1c5e4b289a9.zip
Always do zero-barrier check and prevent LZB 0 overruns in movement logic
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index fead01e..fd56d6d 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -563,7 +563,7 @@ minetest.register_globalstep(function(dtime_mt)
advtrains.load()
end
- local dtime
+ local dtime = dtime_mt
if GENERATE_ATRICIFIAL_LAG then
dtime = HOW_MANY_LAG
if os.clock()<t then