diff options
author | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-19 12:13:44 +0100 |
---|---|---|
committer | thetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com> | 2017-10-19 12:13:44 +0100 |
commit | efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae (patch) | |
tree | 7e8a83aa7bd5fd43c0ed54980c5fec439ccf58bf | |
parent | 3a85152e4d4b6aa192e80bddfad174734ba737d5 (diff) | |
download | pipeworks-efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae.tar pipeworks-efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae.tar.gz pipeworks-efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae.tar.bz2 pipeworks-efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae.tar.xz pipeworks-efcec7bdcee9d4cb955ffb6bcc1cadaf342889ae.zip |
pressure logic: abms.lua: fix invocation bug for directionality callback accidentally passing origin data to neighbour's directionfn
-rw-r--r-- | pressure_logic/abms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pressure_logic/abms.lua b/pressure_logic/abms.lua index ba3906d..083d8c3 100644 --- a/pressure_logic/abms.lua +++ b/pressure_logic/abms.lua @@ -166,7 +166,7 @@ local get_neighbour_positions = function(pos, node) --pipeworks.logger(dname.."directionality test for offset "..formatvec(offset)) local towards_origin = vector.multiply(offset, -1) --pipeworks.logger(dname.."vector passed to directionfn: "..formatvec(towards_origin)) - local result = directional.directionfn(node, towards_origin) + local result = directional.directionfn(neighbour, towards_origin) --pipeworks.logger(dname.."result: "..tostring(result)) if result then local n = get_pressure_access(npos) |