summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-act.cc1
-rw-r--r--crawl-ref/source/monster.cc10
-rw-r--r--crawl-ref/source/monster.h1
3 files changed, 1 insertions, 11 deletions
diff --git a/crawl-ref/source/mon-act.cc b/crawl-ref/source/mon-act.cc
index 77077548b6..4d49b7f266 100644
--- a/crawl-ref/source/mon-act.cc
+++ b/crawl-ref/source/mon-act.cc
@@ -2080,6 +2080,7 @@ void handle_monsters()
const coord_def oldpos = monster->pos();
+ monster->update_los();
_handle_monster_move(monster);
if (!invalid_monster(monster) && monster->pos() != oldpos)
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index c082ac30cd..b088be9a35 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -5220,16 +5220,6 @@ bool monsters::mon_see_cell(const coord_def& p, bool reach) const
true, true));
}
-bool monsters::see_cell(const coord_def &c) const
-{
- // XXX: using env.show since that's been filled anywa.
- if (c == you.pos())
- return (you.see_cell(pos()));
-
- // TODO: Proper monster LOS.
- return (mon_see_cell(c));
-}
-
bool monsters::near_foe() const
{
const actor *afoe = get_foe();
diff --git a/crawl-ref/source/monster.h b/crawl-ref/source/monster.h
index 30c2533ba5..235f4053da 100644
--- a/crawl-ref/source/monster.h
+++ b/crawl-ref/source/monster.h
@@ -320,7 +320,6 @@ public:
bool can_see_invisible() const;
bool visible_to(const actor *looker) const;
bool mon_see_cell(const coord_def& pos, bool reach = false) const;
- bool see_cell(const coord_def& c) const;
bool near_foe() const;
bool is_icy() const;