Revision 3744

Date:
2019-10-26 22:46:38
Author:
dsb
Revision Log:
core.fov.calc_circle()'s callbacks take three arguments, not two.
Files:

Legend:

 
Added
 
Removed
 
Modified
  • tome2/trunk/spell-util.lua

     
    1476 1476
    1477 1477 local map = game.level.map
    1478 1478 local hit_plyr = false
    1479 local function block_cb(x, y) return not map:isBound(x, y) end
    1480 local function mod_cb(x, y)
    1479 local function block_cb(_, x, y) return not map:isBound(x, y) end
    1480 local function mod_cb(_, x, y)
    1481 1481 -- Lose room/vault status.
    1482 1482 map:unattr(x, y, 'room')
    1483 1483 map:unattr(x, y, 'vault')