diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 10:37:06 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 10:37:06 +0100 |
commit | 2c53503bb6c9178c9948211626661994a7c87e3b (patch) | |
tree | cb1bc096d023ba56411353d3cc3d53acf8b35508 /crawl-ref/source/mon-act.cc | |
parent | 24c51a72c720d8a18a6ad5340ce3453eac2ef586 (diff) | |
download | crawl-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.cc | 1 |
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) |