diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 21:29:56 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-17 21:29:56 +0000 |
commit | 00c8183d4970b86b8007f69197eb08b9bc0edafc (patch) | |
tree | 4d2f0b0a39196358d82b8af949f52a4516b251bc /crawl-ref/source/skills2.cc | |
parent | 5b888a167af42417cdf3f75e754fcbc7ae826107 (diff) | |
download | crawl-ref-00c8183d4970b86b8007f69197eb08b9bc0edafc.tar.gz crawl-ref-00c8183d4970b86b8007f69197eb08b9bc0edafc.zip |
Fix [2472876]: tutorial possibly taking up too much real estate on skills
('m') screen.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9120 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index e33b7643e5..d546e2501f 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -1662,6 +1662,7 @@ static void _display_skill_table(bool show_aptitudes, bool show_description) int scrln = 3, scrcol = 1; int x; + int maxln = scrln; // Don't want the help line to appear too far down a big window. const int bottom_line = std::min(30, get_number_of_lines()); @@ -1693,6 +1694,8 @@ static void _display_skill_table(bool show_aptitudes, bool show_description) if (you.skills[x] > 0) #endif { + maxln = std::max(maxln, scrln); + if (you.practise_skill[x] == 0 || you.skills[x] == 0) textcolor(DARKGREY); else @@ -1752,7 +1755,7 @@ static void _display_skill_table(bool show_aptitudes, bool show_description) if (Options.tutorial_left) { - if (show_description) + if (show_description || maxln >= bottom_line - 5) { cgotoxy(1, bottom_line-2); // Doesn't mention the toggle between progress/aptitudes. |