diff options
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) |