summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:39:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:41:29 +0100
commitceb51161c896f17a951b0ba2bbd4b48f8fead13a (patch)
tree6fb22b76e7cda0eeb93e82db1d853f664765fc13 /crawl-ref/source/tilepick.cc
parentf858cfc60235a5cfb86dd2a2c510dde5e130a4bf (diff)
downloadcrawl-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/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 54677b59de..a2517e8cd6 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -2995,7 +2995,7 @@ static inline void _finalise_tile(unsigned int *tile,
else if (orig < TILE_DNGN_MAX)
{
// Some tiles may change from turn to turn, but only if in view.
- if (orig >= TILE_DNGN_LAVA && orig < TILE_BLOOD && see_cell(gc))
+ if (orig >= TILE_DNGN_LAVA && orig < TILE_BLOOD && observe_cell(gc))
env.tile_flv(gc).special = random2(256);
(*tile) = orig + (special_flv % tile_dngn_count(orig));
@@ -4766,7 +4766,7 @@ void tile_finish_dngn(unsigned int *tileb, int cx, int cy)
if (inside_halo(gc))
{
monsters *mon = monster_at(gc);
- if (see_cell(gc) && mon)
+ if (observe_cell(gc) && mon)
{
if (!mons_class_flag(mon->type, M_NO_EXP_GAIN)
&& (!mons_is_mimic(mon->type)