diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 00:16:20 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-17 00:16:20 +0200 |
commit | 241ceb5971b5c87b58e7f28f9fee417230561a5d (patch) | |
tree | 8e3a0781c9ba03971f8880fe6923337a50f45409 /crawl-ref/source/directn.cc | |
parent | f6e6b6b7151af9290c0597acb1995ed157378529 (diff) | |
download | crawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.tar.gz crawl-ref-241ceb5971b5c87b58e7f28f9fee417230561a5d.zip |
Globally replace see_grid by see_cell.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 45aaacbdcb..44459c2131 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -299,7 +299,7 @@ static bool _mon_submerged_in_water(const monsters *mon) return (false); return (grd(mon->pos()) == DNGN_SHALLOW_WATER - && see_grid(mon->pos()) + && see_cell(mon->pos()) && !player_monster_visible(mon) && !mons_flies(mon)); } @@ -381,7 +381,7 @@ static void _direction_again(dist& moves, targetting_type restricts, if (you.prev_grd_targ != coord_def(0, 0)) { - if (!see_grid(you.prev_grd_targ)) + if (!see_cell(you.prev_grd_targ)) { moves.isCancel = true; @@ -909,7 +909,7 @@ bool _dist_ok(const dist& moves, int range, targ_mode_type mode, { if (!moves.isCancel && moves.isTarget) { - if (!see_grid(moves.target)) + if (!see_cell(moves.target)) { mpr("Sorry, you can't target what you can't see.", MSGCH_EXAMINE_FILTER); @@ -1758,7 +1758,7 @@ std::string get_terse_square_desc(const coord_def &gc) desc = you.your_name; else if (!map_bounds(gc)) desc = unseen_desc; - else if (!see_grid(gc)) + else if (!see_cell(gc)) { if (is_terrain_seen(gc)) { @@ -1794,7 +1794,7 @@ std::string get_terse_square_desc(const coord_def &gc) void terse_describe_square(const coord_def &c, bool in_range) { - if (!see_grid(c)) + if (!see_cell(c)) _describe_oos_square(c); else if (in_bounds(c) ) _describe_cell(c, in_range); @@ -1806,7 +1806,7 @@ void get_square_desc(const coord_def &c, describe_info &inf, // NOTE: Keep this function in sync with full_describe_square. // Don't give out information for things outside LOS - if (!see_grid(c)) + if (!see_cell(c)) return; const monsters* mons = monster_at(c); @@ -1849,7 +1849,7 @@ void full_describe_square(const coord_def &c) // NOTE: Keep this function in sync with get_square_desc. // Don't give out information for things outside LOS - if (!see_grid(c)) + if (!see_cell(c)) return; const monsters* mons = monster_at(c); @@ -2049,7 +2049,7 @@ static bool _find_monster( const coord_def& where, int mode, bool need_path, return (false); // Monster in LOS but only via glass walls, so no direct path. - if (need_path && !see_grid_no_trans(where)) + if (need_path && !see_cell_no_trans(where)) return (false); if (!_mons_is_valid_target(mon, mode, range)) |