From 7fce9b7324c77c16c310e76a6d697e6f84fc9398 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 15 Jun 2008 11:32:54 +0000 Subject: Fix 1948131: Quiver slot name wraps around the screen. Also fixes tile issues where the inventory was partly covered or not shown at all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5844 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 1774818fc4..f190f6aa18 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -105,7 +105,7 @@ class colour_bar #endif const int width = crawl_view.hudsz.x - (ox-1); - const int disp = width * val / max_val; + const int disp = width * val / max_val; const int old_disp = (m_old_disp < 0) ? disp : m_old_disp; m_old_disp = disp; @@ -528,7 +528,8 @@ static void _print_stats_qv(int y) else if (item != NULL && is_valid_item(*item)) { textcolor(item->colour); - cprintf("-) %s", item->name(DESC_PLAIN, true).c_str()); + cprintf("-) %s", item->name(DESC_PLAIN, true) + .substr(0, crawl_view.hudsz.x - 15).c_str()); textcolor(RED); cprintf(" (empty)"); } @@ -1489,7 +1490,7 @@ void update_monster_pane() } } #else -// FIXME: implement this for tiles +// FIXME: Implement this for Tiles! void update_monster_pane() {} #endif -- cgit v1.2.3-54-g00ecf