diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 20:39:11 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 20:41:29 +0100 |
commit | ceb51161c896f17a951b0ba2bbd4b48f8fead13a (patch) | |
tree | 6fb22b76e7cda0eeb93e82db1d853f664765fc13 /crawl-ref/source/monstuff.cc | |
parent | f858cfc60235a5cfb86dd2a2c510dde5e130a4bf (diff) | |
download | crawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.tar.gz crawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.zip |
Replace global see_cell by observe_cell and disambiguate old uses.
Calls to plain see_cell(pos) were replaced with either observe_cell(pos)
or you.see_cell(pos). observe_cell where related to drawing the
interface and messaging, you.see_cell for game mechanics, and
one or the other in less clear cases (targetting, say).
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r-- | crawl-ref/source/monstuff.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc index c5722b2121..7a7ea35dc2 100644 --- a/crawl-ref/source/monstuff.cc +++ b/crawl-ref/source/monstuff.cc @@ -473,7 +473,7 @@ int place_monster_corpse(const monsters *monster, bool silent, // Don't care if 'o' is changed, and it shouldn't be (corpses don't // stack). move_item_to_grid(&o, monster->pos()); - if (see_cell(monster->pos())) + if (observe_cell(monster->pos())) { if (force && !silent) { @@ -822,7 +822,7 @@ static bool _slime_vault_in_los() { if ((grd[x][y] == DNGN_STONE_WALL || grd[x][y] == DNGN_CLEAR_STONE_WALL) - && see_cell(x, y)) + && observe_cell(coord_def(x, y))) { in_los = true; break; @@ -1928,7 +1928,7 @@ int monster_die(monsters *monster, killer_type killer, monster->foe = killer_index; } - if (!silent && !wizard && see_cell(monster->pos())) + if (!silent && !wizard && observe_cell(monster->pos())) { // Make sure that the monster looks dead. if (monster->alive() && !in_transit && (!summoned || duration > 0)) @@ -2031,7 +2031,7 @@ int monster_die(monsters *monster, killer_type killer, monster_cleanup(monster); // Force redraw for monsters that die. - if (see_cell(mwhere)) + if (observe_cell(mwhere)) { view_update_at(mwhere); update_screen(); |