diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-06 21:09:55 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-07 07:13:17 +0100 |
commit | eba334b16cedbe10d7a2690b24b477857ddda358 (patch) | |
tree | cdbd56aeeb26f3aa0d53e66b30f24c8a1d97f5e0 | |
parent | 10273d633986cf417c52169acb14a12fc52cb018 (diff) | |
download | crawl-ref-eba334b16cedbe10d7a2690b24b477857ddda358.tar.gz crawl-ref-eba334b16cedbe10d7a2690b24b477857ddda358.zip |
Make player use actor LOS instead of env.show_los.
-rw-r--r-- | crawl-ref/source/los.cc | 2 | ||||
-rw-r--r-- | crawl-ref/source/player.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/player.h | 1 |
3 files changed, 1 insertions, 8 deletions
diff --git a/crawl-ref/source/los.cc b/crawl-ref/source/los.cc index e28f91e94a..1d68cef75c 100644 --- a/crawl-ref/source/los.cc +++ b/crawl-ref/source/los.cc @@ -1008,7 +1008,7 @@ void calc_show_los() if (!crawl_state.arena && !crawl_state.arena_suspended) { losight(env.show_los, you.pos()); - + you.update_los(); // What would be visible, if all of the translucent walls were // made opaque. // XXX: figure out what this should really do. diff --git a/crawl-ref/source/player.cc b/crawl-ref/source/player.cc index dbbec6e49e..5dd852ff30 100644 --- a/crawl-ref/source/player.cc +++ b/crawl-ref/source/player.cc @@ -6903,12 +6903,6 @@ bool player::visible_to(const actor *looker) const mon->can_see_invisible() || mons_sense_invis(mon)); } -bool player::see_cell(const coord_def &c) const -{ - // TODO: give player own LOS. - return (observe_cell(c)); -} - bool player::backlit(bool check_haloed) const { return (get_contamination_level() > 0 || duration[DUR_BACKLIGHT] diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index b2e9031e1d..0ea3752a17 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -317,7 +317,6 @@ public: bool can_see_invisible() const; bool can_see_invisible(bool unid) const; bool visible_to(const actor *looker) const; - bool see_cell(const coord_def &c) const; bool is_icy() const; bool is_fiery() const; |