diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 00:16:20 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 00:16:20 +0200 |
commit | 241ceb5971b5c87b58e7f28f9fee417230561a5d (patch) | |
tree | 8e3a0781c9ba03971f8880fe6923337a50f45409 /crawl-ref/source/test | |
parent | f6e6b6b7151af9290c0597acb1995ed157378529 (diff) | |
download | crawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.tar.gz crawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.zip |
Globally replace see_grid by see_cell.
Diffstat (limited to 'crawl-ref/source/test')
-rw-r--r-- | crawl-ref/source/test/findray.lua | 2 | ||||
-rw-r--r-- | crawl-ref/source/test/los_maps.lua | 2 | ||||
-rw-r--r-- | crawl-ref/source/test/los_symm.lua | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/test/findray.lua b/crawl-ref/source/test/findray.lua index 72f9526f15..1b0248494b 100644 --- a/crawl-ref/source/test/findray.lua +++ b/crawl-ref/source/test/findray.lua @@ -20,7 +20,7 @@ local function test_findray() for x = -8, 8 do if x ~= 0 or y ~= 0 then local px, py = x + you_x, y + you_y - if you.see_grid_no_trans(px, py) then + if you.see_cell_no_trans(px, py) then table.insert(visible_spots, { px, py }) end end diff --git a/crawl-ref/source/test/los_maps.lua b/crawl-ref/source/test/los_maps.lua index 769cd251ec..f6ac2a2591 100644 --- a/crawl-ref/source/test/los_maps.lua +++ b/crawl-ref/source/test/los_maps.lua @@ -30,7 +30,7 @@ local function test_los_map(map) local should_see = ((x == 0 and y == 0) or dgn.grid(xa, ya) == rock_wall or dgn.grid(xa, ya) == floor) - local can_see = you.see_grid(xa, ya) + local can_see = you.see_cell(xa, ya) if can_see and (not should_see) then assert(false, "los error in " .. name .."(iter #" .. checks .. "): can see " .. p .. " but shouldn't.") diff --git a/crawl-ref/source/test/los_symm.lua b/crawl-ref/source/test/los_symm.lua index 43bce66928..eac1db7577 100644 --- a/crawl-ref/source/test/los_symm.lua +++ b/crawl-ref/source/test/los_symm.lua @@ -20,7 +20,7 @@ local function test_losight_symmetry() for x = -8, 8 do if x ~= 0 or y ~= 0 then local px, py = x + you_x, y + you_y - if you.see_grid(px, py) then + if you.see_cell(px, py) then table.insert(visible_spots, { px, py }) end end @@ -33,7 +33,7 @@ local function test_losight_symmetry() local x, y = unpack(spot) you.moveto(x, y) you.losight() - if not you.see_grid(you_x, you_y) then + if not you.see_cell(you_x, you_y) then -- Draw the view to show the problem. crawl.redraw_view() local this_p = dgn.point(x, y) |