aboutsummaryrefslogtreecommitdiff
path: root/advtrains_interlocking
diff options
context:
space:
mode:
authorGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-16 17:26:53 +0200
committerGabriel Pérez-Cerezo <gabriel@gpcf.eu>2019-07-16 17:26:53 +0200
commitdaba00b6a2edd57b2674168f05194c4ff80280e1 (patch)
treee61d8586952abda2e5c7b156271964acff93ab7e /advtrains_interlocking
parent7a6740eb8c8e6902d1379273ba9dc7c4c2c14cdf (diff)
downloadadvtrains-daba00b6a2edd57b2674168f05194c4ff80280e1.tar.gz
advtrains-daba00b6a2edd57b2674168f05194c4ff80280e1.tar.bz2
advtrains-daba00b6a2edd57b2674168f05194c4ff80280e1.zip
Various small fixes
- Also do atomic operations on nodedb - no longer require Worldedit for at_sync_ndb - "overrun LZB 0 restriction" should now show where it happened.
Diffstat (limited to 'advtrains_interlocking')
-rw-r--r--advtrains_interlocking/approach.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains_interlocking/approach.lua b/advtrains_interlocking/approach.lua
index 3fe72f6..8e90b5a 100644
--- a/advtrains_interlocking/approach.lua
+++ b/advtrains_interlocking/approach.lua
@@ -17,7 +17,7 @@ local il = advtrains.interlocking
local function get_over_function(speed, shunt)
return function(pos, id, train, index, speed, lzbdata)
if speed == 0 and minetest.settings:get_bool("at_il_force_lzb_halt") then
- atwarn(id,"overrun LZB 0 restriction (red signal) ",ent.pos)
+ atwarn(id,"overrun LZB 0 restriction (red signal) ",pos)
-- Set train 1 index backward. Hope this does not lead to bugs...
train.index = index - 0.5
train.velocity = 0