From e515471c2e027d2f1bd06e7b4cde7e8983949fcb Mon Sep 17 00:00:00 2001 From: ennewalker Date: Fri, 28 Mar 2008 23:00:27 +0000 Subject: Moving monster list update to viewwindow (since only when the screen redraws is there a change to see new monsters.) As far as I know, this should fix all the monster list update issues. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3922 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/delay.cc | 2 -- crawl-ref/source/output.cc | 5 ----- crawl-ref/source/state.cc | 2 -- crawl-ref/source/view.cc | 2 ++ 4 files changed, 2 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source') diff --git a/crawl-ref/source/delay.cc b/crawl-ref/source/delay.cc index b050df9a03..d54fcdfe41 100644 --- a/crawl-ref/source/delay.cc +++ b/crawl-ref/source/delay.cc @@ -1406,8 +1406,6 @@ inline static void monster_warning(activity_interrupt_type ai, see_grid(mon->x, mon->y)? "yes" : "no"); formatted_mpr(fs, MSGCH_WARN); #endif - - update_monster_pane(); } } diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 46e3349ce7..f540fbe4e2 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -936,11 +936,6 @@ void print_stats(void) if (you.redraw_status_flags & REDRAW_LINE_3_MASK) _print_stats_line3(); - // XXX: better check? I think this skips the update at the very end - // of a delay - if (you.delay_queue.empty()) - update_monster_pane(); - you.redraw_status_flags = 0; #if DEBUG_DIAGNOSTICS diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc index b3c21da5ce..992380132e 100644 --- a/crawl-ref/source/state.cc +++ b/crawl-ref/source/state.cc @@ -206,8 +206,6 @@ bool interrupt_cmd_repeat( activity_interrupt_type ai, formatted_mpr(fs, MSGCH_WARN); #endif - update_monster_pane(); - return true; } diff --git a/crawl-ref/source/view.cc b/crawl-ref/source/view.cc index 48ebbcfbf0..57cd12825c 100644 --- a/crawl-ref/source/view.cc +++ b/crawl-ref/source/view.cc @@ -58,6 +58,7 @@ #include "monstuff.h" #include "mon-util.h" #include "newgame.h" +#include "output.h" #include "overmap.h" #include "player.h" #include "religion.h" @@ -4747,6 +4748,7 @@ void viewwindow(bool draw_it, bool do_updates) crawl_view.viewp.y + crawl_view.viewsz.y - 1, buffy); #endif + update_monster_pane(); } } } // end viewwindow() -- cgit v1.2.3-54-g00ecf