diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 22:28:38 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 22:37:09 +0200 |
commit | e9c4ad3ff54b7cf9f7f05c5cd58c03cd605663b5 (patch) | |
tree | ad0ed71df5199621865338e4bef5e722777bf86f /crawl-ref/source/delay.cc | |
parent | 1fdd4abbce290f4d656bf29ce65d70ab5025871d (diff) | |
download | crawl-ref-e9c4ad3ff54b7cf9f7f05c5cd58c03cd605663b5.tar.gz crawl-ref-e9c4ad3ff54b7cf9f7f05c5cd58c03cd605663b5.zip |
Rename actor::visible to actor::observable.
This should reduce potential for confusion -- compare mon->visible() and
mon->invisible(). The uses of actor::visible for messaging are replaced by
actor::observable, others by you.can_see(...) or actor::visible_to(&you).
Diffstat (limited to 'crawl-ref/source/delay.cc')
-rw-r--r-- | crawl-ref/source/delay.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index b307c6a837..2fe59e8f2c 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1816,7 +1816,7 @@ inline static bool _monster_warning(activity_interrupt_type ai, || _is_butcher_delay(atype))) { const monsters* mon = static_cast<const monsters*>(at.data); - if (!mon->visible()) + if (!you.can_see(mon)) return (false); if (at.context == "already seen" || at.context == "uncharm") { |