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/misc.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/misc.cc')
-rw-r--r-- | crawl-ref/source/misc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/misc.cc b/crawl-ref/source/misc.cc index ec3806caa1..849c875820 100644 --- a/crawl-ref/source/misc.cc +++ b/crawl-ref/source/misc.cc @@ -1219,7 +1219,7 @@ void search_around(bool only_adjacent) for (radius_iterator ri(you.pos(), max_dist); ri; ++ri ) { // Must have LOS, with no translucent walls in the way. - if (see_grid_no_trans(*ri)) + if (see_cell_no_trans(*ri)) { // Maybe we want distance() instead of grid_distance()? int dist = grid_distance(*ri, you.pos()); @@ -2710,12 +2710,12 @@ bool mons_is_safe(const monsters *mon, bool want_move, // Only seen through glass walls or within water? // Assuming that there are no water-only/lava-only // monsters capable of throwing or zapping wands. - || (!see_grid_no_trans(mon->pos()) + || (!see_cell_no_trans(mon->pos()) || mons_class_habitat(mon->type) == HT_WATER || mons_class_habitat(mon->type) == HT_LAVA) && !_mons_has_path_to_player(mon) && !mons_has_los_attack(mon) - && (!see_grid_no_trans(mon->pos()) + && (!see_cell_no_trans(mon->pos()) || !mons_has_ranged_ability(mon))); #ifdef CLUA_BINDINGS |