summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dat/clua
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-11-27 21:18:11 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-11-27 21:22:06 +1000
commitec60900d973de379c00930908bce3ae08a29ecda (patch)
tree8b27ffbfcdace2d6c7a007cb7e3fdc67b23b4ba7 /crawl-ref/source/dat/clua
parent2c9120bf3ebf1482ea20ab96008579570453342b (diff)
downloadcrawl-ref-ec60900d973de379c00930908bce3ae08a29ecda.tar.gz
crawl-ref-ec60900d973de379c00930908bce3ae08a29ecda.zip
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.
Diffstat (limited to 'crawl-ref/source/dat/clua')
-rw-r--r--crawl-ref/source/dat/clua/iter.lua6
1 files changed, 3 insertions, 3 deletions
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