summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/xom.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/xom.cc')
-rw-r--r--crawl-ref/source/xom.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/crawl-ref/source/xom.cc b/crawl-ref/source/xom.cc
index 3298631d85..4f2fadc827 100644
--- a/crawl-ref/source/xom.cc
+++ b/crawl-ref/source/xom.cc
@@ -1548,7 +1548,7 @@ static int _xom_swap_weapons(bool debug = false)
if (!m->alive())
continue;
- if (!see_cell(m->pos()))
+ if (!you.see_cell(m->pos()))
continue;
if (!wpn || mons_wont_attack(m) || mons_is_summoned(m)
@@ -1684,7 +1684,7 @@ static int _xom_rearrange_pieces(int sever, bool debug = false)
if (!m->alive())
continue;
- if (!see_cell(m->pos()))
+ if (!you.see_cell(m->pos()))
continue;
mons.push_back(m);
@@ -1748,7 +1748,7 @@ static int _xom_animate_monster_weapon(int sever, bool debug = false)
if (!m->alive())
continue;
- if (!see_cell(m->pos()))
+ if (!you.see_cell(m->pos()))
continue;
if (mons_wont_attack(m) || mons_is_summoned(m)
@@ -1993,7 +1993,7 @@ static int _xom_change_scenery(bool debug = false)
std::vector<coord_def> candidates;
for (radius_iterator ri(you.pos(), LOS_RADIUS, false, true); ri; ++ri)
{
- if (!in_bounds(*ri) || !see_cell(*ri))
+ if (!in_bounds(*ri) || !you.see_cell(*ri))
continue;
dungeon_feature_type feat = grd(*ri);
@@ -2021,7 +2021,7 @@ static int _xom_change_scenery(bool debug = false)
{
if ((random_near_space(you.pos(), place)
|| random_near_space(you.pos(), place, true))
- && grd(place) == DNGN_FLOOR && see_cell(place))
+ && grd(place) == DNGN_FLOOR && you.see_cell(place))
{
if (debug)
return (XOM_GOOD_SCENERY);
@@ -2959,7 +2959,7 @@ bool move_stair(coord_def stair_pos, bool away, bool allow_under)
bool found_stairs = false;
int past_stairs = 0;
- while (in_bounds(ray.pos()) && see_cell(ray.pos())
+ while (in_bounds(ray.pos()) && you.see_cell(ray.pos())
&& !cell_is_solid(ray.pos()) && ray.pos() != you.pos())
{
if (ray.pos() == stair_pos)
@@ -2996,7 +2996,7 @@ bool move_stair(coord_def stair_pos, bool away, bool allow_under)
if (!in_bounds(ray.pos()) || ray.pos() == you.pos())
ray.regress();
- while (!see_cell(ray.pos()) || grd(ray.pos()) != DNGN_FLOOR)
+ while (!you.see_cell(ray.pos()) || grd(ray.pos()) != DNGN_FLOOR)
{
ray.regress();
if (!in_bounds(ray.pos()) || ray.pos() == you.pos()