Commit 8c9c2d37a6502d5e15b9bdcd591ed6586739c5d6
1 parent
8565ba29
fix
git-svn-id: http://svn.net-core.org/repos/t-engine4@3115 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
1 changed file
with
2 additions
and
2 deletions
... | ... | @@ -857,7 +857,7 @@ function core.fov.circle_grids(x, y, radius, block) |
857 | 857 | core.fov.calc_circle(x, y, game.level.map.w, game.level.map.h, radius, function(_, lx, ly) |
858 | 858 | if block and game.level.map:checkEntity(lx, ly, engine.Map.TERRAIN, "block_move") then return true end |
859 | 859 | end, |
860 | - function() | |
860 | + function(_, lx, ly) | |
861 | 861 | if not grids[lx] then grids[lx] = {} end |
862 | 862 | grids[lx][ly] = true |
863 | 863 | end, nil) |
... | ... | @@ -875,7 +875,7 @@ function core.fov.beam_grids(x, y, radius, dir, angle, block) |
875 | 875 | core.fov.calc_beam(x, y, game.level.map.w, game.level.map.h, radius, dir, angle, function(_, lx, ly) |
876 | 876 | if block and game.level.map:checkEntity(lx, ly, engine.Map.TERRAIN, "block_move") then return true end |
877 | 877 | end, |
878 | - function() | |
878 | + function(_, lx, ly) | |
879 | 879 | if not grids[lx] then grids[lx] = {} end |
880 | 880 | grids[lx][ly] = true |
881 | 881 | end, nil) | ... | ... |
-
Please register or login to post a comment