From 0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1 Mon Sep 17 00:00:00 2001 From: thetaepsilon-gamedev Date: Mon, 16 Oct 2017 23:41:03 +0100 Subject: new flow logic: abms.lua: directional flow logic trace log points for local debugging --- new_flow_logic/abms.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/new_flow_logic/abms.lua b/new_flow_logic/abms.lua index e5e2e6e..c14c124 100644 --- a/new_flow_logic/abms.lua +++ b/new_flow_logic/abms.lua @@ -131,7 +131,7 @@ end flowlogic.balance_pressure = function(pos, node, currentpressure) - -- debuglog("balance_pressure() "..node.name.." at "..pos.x.." "..pos.y.." "..pos.z) + -- local dname = "flowlogic.balance_pressure()@"..formatvec(pos).." " -- check the pressure of all nearby flowable nodes, and average it out. -- pressure handles to average over @@ -152,6 +152,7 @@ flowlogic.balance_pressure = function(pos, node, currentpressure) -- directional flowables: call the callback to get the list local directional = pipeworks.flowables.list.directional[node.name] if directional then + --pipeworks.logger(dname.."invoking neighbourfn") local offsets = directional.neighbourfn(node) candidates = apply_coords_offsets(pos, offsets) end -- cgit v1.2.3