summaryrefslogtreecommitdiff
path: root/new_flow_logic
diff options
context:
space:
mode:
authorthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 21:20:30 +0100
committerthetaepsilon-gamedev <thetaepsilon-gamedev@noreply.users.github.com>2017-10-01 21:20:30 +0100
commit8e53526b545e2dc0a05066fb18f064a394e20740 (patch)
tree2de380c0748217aab82eb7b89cd98c5e5006ffed /new_flow_logic
parent76ebd0a0e1552e0b519716deca3d77e03d1b6b94 (diff)
downloadpipeworks-8e53526b545e2dc0a05066fb18f064a394e20740.tar
pipeworks-8e53526b545e2dc0a05066fb18f064a394e20740.tar.gz
pipeworks-8e53526b545e2dc0a05066fb18f064a394e20740.tar.bz2
pipeworks-8e53526b545e2dc0a05066fb18f064a394e20740.tar.xz
pipeworks-8e53526b545e2dc0a05066fb18f064a394e20740.zip
new flow logic: abms.lua: rename neighbour output helper to better indicate lack of rotation support
Diffstat (limited to 'new_flow_logic')
-rw-r--r--new_flow_logic/abms.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/new_flow_logic/abms.lua b/new_flow_logic/abms.lua
index a07c390..15adcef 100644
--- a/new_flow_logic/abms.lua
+++ b/new_flow_logic/abms.lua
@@ -115,7 +115,8 @@ end
-- outputs water by trying to place water nodes nearby in the world.
-- neighbours is a list of node offsets to try placing water in.
-- this is a constructor function, returning another function which satisfies the output helper requirements.
-flowlogic.helpers.make_neighbour_output = function(neighbours)
+-- note that this does *not* take rotation into account.
+flowlogic.helpers.make_neighbour_output_fixed = function(neighbours)
return function(pos, node, currentpressure)
local taken = 0
for _, offset in pairs(neighbours) do