From 8f4c90c5a53b531451436b8e0a1ea8a3b750110e Mon Sep 17 00:00:00 2001
From: orwell96 <orwell@bleipb.de>
Date: Sat, 2 Jan 2021 18:00:12 +0100
Subject: Add debug prints, modify LZB to fix problems with look_ahead

---
 advtrains_luaautomation/active_common.lua | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'advtrains_luaautomation')

diff --git a/advtrains_luaautomation/active_common.lua b/advtrains_luaautomation/active_common.lua
index 7db3eaf..d3985dc 100644
--- a/advtrains_luaautomation/active_common.lua
+++ b/advtrains_luaautomation/active_common.lua
@@ -150,6 +150,11 @@ function ac.run_in_env(pos, evtdata, customfct_p)
 		if meta then
 			meta:set_string("infotext", "LuaAutomation ATC interface rail, ERROR:"..dataout)
 		end
+		--TODO temporary
+		--if customfct.atc_id then
+		--	advtrains.drb_dump(customfct.atc_id)
+		--	error("Debug: LuaATC error hit!")
+		--end
 	end
 	if meta then
 		meta:set_string("formspec", ac.getform(pos, meta))
-- 
cgit v1.2.3