From ec60900d973de379c00930908bce3ae08a29ecda Mon Sep 17 00:00:00 2001 From: Jude Brown Date: Fri, 27 Nov 2009 21:18:11 +1000 Subject: Fix include center being broken. Typo in the variable name ("y" instead of "_y") meant that the center was always being included, even if it was specifically excluded. --- crawl-ref/source/dat/clua/iter.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/dat/clua') diff --git a/crawl-ref/source/dat/clua/iter.lua b/crawl-ref/source/dat/clua/iter.lua index 17dd95ffac..904bd57151 100644 --- a/crawl-ref/source/dat/clua/iter.lua +++ b/crawl-ref/source/dat/clua/iter.lua @@ -130,7 +130,7 @@ function iter.los_iterator (ic, filter, center) end end - if y_x == _x and y_y == y then + if y_x == _x and y_y == _y then return include_center end @@ -168,7 +168,7 @@ function iter.adjacent_iterator (ic, filter, center) end end - if y_x == _x and y_y == y then + if y_x == _x and y_y == _y then return include_center end @@ -207,7 +207,7 @@ function iter.circle_iterator (radius, ic, filter, center) end end - if y_x == _x and y_y == y then + if y_x == _x and y_y == _y then return include_center end -- cgit v1.2.3-54-g00ecf