From eba334b16cedbe10d7a2690b24b477857ddda358 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Fri, 6 Nov 2009 21:09:55 +0100 Subject: Make player use actor LOS instead of env.show_los. --- crawl-ref/source/los.cc | 2 +- crawl-ref/source/player.cc | 6 ------ crawl-ref/source/player.h | 1 - 3 files changed, 1 insertion(+), 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; -- cgit v1.2.3-54-g00ecf