summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-24 09:33:03 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-24 09:33:03 +0000
commitf2bec04c3f2f9a3605c2edf62b3d65ccd62a73d8 (patch)
treec8f79f5dfeed745c06fac37caf8862d45f7f734c /crawl-ref/source/output.cc
parent466f7bec317bf52418535eb1f9ac997dff2b9f8e (diff)
downloadcrawl-ref-f2bec04c3f2f9a3605c2edf62b3d65ccd62a73d8.tar.gz
crawl-ref-f2bec04c3f2f9a3605c2edf62b3d65ccd62a73d8.zip
Let's see if this works a bit better... only update monster display
when not delaying. Seems a bit faster, but I've seen cases where there's a monster on screen but not in the list (maybe before this change too; not sure) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3855 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc14
1 files changed, 11 insertions, 3 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc
index ab697fec45..52ea36376e 100644
--- a/crawl-ref/source/output.cc
+++ b/crawl-ref/source/output.cc
@@ -466,6 +466,8 @@ static void _print_stats_qv()
// - green, light green for good conditions
// - blue, light blue for good enchantments
// - magenta, light magenta for "better" enchantments (deflect, fly)
+//
+// Prints burden, hunger
static void _print_stats_line1()
{
cgotoxy(1, 15, GOTO_STAT);
@@ -523,6 +525,8 @@ static void _print_stats_line1()
}
// For colors, see comment at _print_stats_line1
+// Prints pray, holy, teleport, regen, insulation, fly/lev, invis, silence,
+// breath, bargain, sage
static void _print_stats_line2()
{
cgotoxy(1, 16, GOTO_STAT);
@@ -627,6 +631,8 @@ static void _print_stats_line2()
}
// For colors, see comment at _print_stats_line1
+// Prints confused, beheld, fire, poison, disease, rot,
+// held, glow, swift, fast, slow
static void _print_stats_line3()
{
cgotoxy(1, 17, GOTO_STAT);
@@ -796,7 +802,7 @@ _print_next_monster_desc(const std::vector<monsters*>& mons,
textcolor(LIGHTGREY);
}
-static void _print_stats_line4_monsters()
+static void _print_stats_monster_pane()
{
// TODO:
// - display rough health (color, or text?)
@@ -899,8 +905,10 @@ void print_stats(void)
#ifndef USE_TILE
// FIXME: implement this for tiles
- if (true /* xxx: expensive? */)
- _print_stats_line4_monsters();
+ // XXX: better check? I think this skips the update at the very end
+ // of a delay
+ if (you.delay_queue.empty())
+ _print_stats_monster_pane();
#endif
you.redraw_status_flags = 0;