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/player.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/player.cc')
-rw-r--r-- | crawl-ref/source/player.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index e5e9333d51..01713f190d 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -2661,7 +2661,7 @@ void forget_map(unsigned char chance_forgotten, bool force) : 25*25; for (rectangle_iterator ri(0); ri; ++ri) { - if (!see_cell(*ri) + if (!you.see_cell(*ri) && (force || x_chance_in_y(chance_forgotten, 100) || use_lab_check && (you.pos()-*ri).abs() > radius)) { @@ -6905,7 +6905,8 @@ bool player::visible_to(const actor *looker) const bool player::see_cell(const coord_def &c) const { - return (::see_cell(c)); + // TODO: give player own LOS. + return (observe_cell(c)); } bool player::backlit(bool check_haloed) const |