diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 11:32:54 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-15 11:32:54 +0000 |
commit | 7fce9b7324c77c16c310e76a6d697e6f84fc9398 (patch) | |
tree | 061bcb63c57c1281473a289e22041cb93259feca /crawl-ref/source/output.cc | |
parent | ead36b3ba490fb199815ccc048ba204e5bbee30e (diff) | |
download | crawl-ref-7fce9b7324c77c16c310e76a6d697e6f84fc9398.tar.gz crawl-ref-7fce9b7324c77c16c310e76a6d697e6f84fc9398.zip |
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
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 7 |
1 files changed, 4 insertions, 3 deletions
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 |