summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-act.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 10:37:06 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 10:37:06 +0100
commit2c53503bb6c9178c9948211626661994a7c87e3b (patch)
treecb1bc096d023ba56411353d3cc3d53acf8b35508 /crawl-ref/source/mon-act.cc
parent24c51a72c720d8a18a6ad5340ce3453eac2ef586 (diff)
downloadcrawl-ref-2c53503bb6c9178c9948211626661994a7c87e3b.tar.gz
crawl-ref-2c53503bb6c9178c9948211626661994a7c87e3b.zip
Enable proper monster LOS.
monsters::see_cell replaced by actor::see_cell. monsters::update_los called once per turn in handle_monsters -- this might not suffice. There's still monsters::mon_see_cell etc. waiting to be converted.
Diffstat (limited to 'crawl-ref/source/mon-act.cc')
-rw-r--r--crawl-ref/source/mon-act.cc1
1 files changed, 1 insertions, 0 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)