B:BD[
5.386] → [
3.3274:3679]
if (!is_terrain_changed(x,y))
continue;
if (env.map[x][y].object < NUM_REAL_FEATURES)
fgrid[x][y] = (dungeon_feature_type) env.map[x][y].object;
else
{
// If you have seen monsters, items or clouds there,
// it must have been passable.
fgrid[x][y] = DNGN_FLOOR;
}
// A cell is considered clear unless the player knows it's
// opaque.
opacity_type opacity(const coord_def& p) const
{
const coord_def& q = trans(p);
if (!is_terrain_seen(q))
return OPC_CLEAR;
else if (!is_terrain_changed(q))
return _feat_opacity(env.grid(q));
else if (env.map(q).object < NUM_REAL_FEATURES)
return _feat_opacity((dungeon_feature_type) env.map(q).object);
else
{
// If you have seen monsters, items or clouds there,
// it must have been passable.
return OPC_CLEAR;