diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-16 23:41:03 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-16 23:41:03 +0100 |
commit | 0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1 (patch) | |
tree | ce4fcf027da5baa55710349d76cae044ad49024b | |
parent | c55374cdfadd9cc04db63908c7ac9cf8ec6aff21 (diff) | |
download | pipeworks-0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1.tar pipeworks-0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1.tar.gz pipeworks-0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1.tar.bz2 pipeworks-0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1.tar.xz pipeworks-0dd1dbc901a6885e74c26ce80fa95fb91dc6c6f1.zip |
new flow logic: abms.lua: directional flow logic trace log points for local debugging
-rw-r--r-- | new_flow_logic/abms.lua | 3 |
1 files changed, 2 insertions, 1 deletions
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 |