diff options
author | Charles Otto <ottochar@gmail.com> | 2009-10-22 22:59:21 -0400 |
---|---|---|
committer | Charles Otto <ottochar@gmail.com> | 2009-10-22 23:01:13 -0400 |
commit | 6c533e886a3afd0ab03305c21bb69d3cf9fc5b7a (patch) | |
tree | 628c35c053df5e7231c72e355a3521b7047597c3 /crawl-ref/source/mon-util.cc | |
parent | a21a3390808530cadb69bab45929268dd122f126 (diff) | |
download | crawl-ref-6c533e886a3afd0ab03305c21bb69d3cf9fc5b7a.tar.gz crawl-ref-6c533e886a3afd0ab03305c21bb69d3cf9fc5b7a.zip |
Fix a crash caused by monsters::check_redraw using the wrong see_cell
Fix an assertion failure triggered by view_update_at getting called
for out of sight squares. view_update_at was getting called for out
of LOS squares because monsters::check_redraw was using
monsters::see_cell instead of the global function see_cell for the LOS
check.
Diffstat (limited to 'crawl-ref/source/mon-util.cc')
-rw-r--r-- | crawl-ref/source/mon-util.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc index 8729dcbca3..d6abdcae50 100644 --- a/crawl-ref/source/mon-util.cc +++ b/crawl-ref/source/mon-util.cc @@ -8069,8 +8069,8 @@ bool monsters::has_action_energy() const void monsters::check_redraw(const coord_def &old) const { - const bool see_new = see_cell(pos()); - const bool see_old = see_cell(old); + const bool see_new = ::see_cell(pos()); + const bool see_old = ::see_cell(old); if ((see_new || see_old) && !view_update()) { if (see_new) |