summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monster.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/monster.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/monster.cc')
-rw-r--r--crawl-ref/source/monster.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index 1cd5129676..27cd5113e2 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -4850,7 +4850,7 @@ void monsters::apply_enchantment(const mon_enchant &me)
// If you are no longer dying, you must be dead.
if (decay_enchantment(me))
{
- if (::see_cell(position))
+ if (observe_cell(position))
{
mprf("A nearby %s withers and dies.",
this->name(DESC_PLAIN, false).c_str());
@@ -4890,7 +4890,7 @@ void monsters::apply_enchantment(const mon_enchant &me)
{
env.mons[rc].behaviour = BEH_WANDER;
- if (::see_cell(adjacent) && ::see_cell(pos()))
+ if (observe_cell(adjacent) && observe_cell(pos()))
mpr("A nearby fungus spawns a giant spore.");
}
break;
@@ -5245,8 +5245,8 @@ bool monsters::has_action_energy() const
void monsters::check_redraw(const coord_def &old) const
{
- const bool see_new = ::see_cell(pos());
- const bool see_old = ::see_cell(old);
+ const bool see_new = observe_cell(pos());
+ const bool see_old = observe_cell(old);
if ((see_new || see_old) && !view_update())
{
if (see_new)
@@ -5300,7 +5300,7 @@ void monsters::apply_location_effects(const coord_def &oldpos)
if (genus == MONS_JELLY || genus == MONS_GIANT_SLUG)
{
prop &= ~FPROP_BLOODY;
- if (see_cell(pos()) && !visible_to(&you))
+ if (observe_cell(pos()) && !visible_to(&you))
{
std::string desc =
feature_description(pos(), false, DESC_NOCAP_THE, false);