robotis/rlfl — Issue #2: Walls are not marked as CELL_SEEN
Author: sirvaulterscoff
Created: 2011-11-18 12:39:05+00:00
State: open

Hello, I create fov map and fill it parameters as follow

fov_map = rlfl.create_map(self.current.width, self.current.height)
#iterate over x, y and get tile
if tile.block_los:
rlfl.set_flag(fov_map, (x, y), CELL_WALK)
if tile.is_wall:
rlfl.set_flag(fov_map, (x, y), rlfl.CELL_PERM) #actualy i tried setting CELL_NONE or even not setting anything here
#next i compute fov
rlfl.fov(fov_map, (x, y), fov_range, rlfl.FOV_PERMISSIVE, True) #tried all available FOV algorithms as well

#in my render code
visible = rlfl.has_flag(fov_map, (x, y), rlfl.CELL_SEEN)

When i check CELL_SEEN flag on the wall i always get False.