diff options
author | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-16 02:26:06 +0000 |
---|---|---|
committer | dolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-16 02:26:06 +0000 |
commit | 97c15a38617b933ae5efb6621a361e3fad48a091 (patch) | |
tree | a7c073fe54716705fe5f7ffb339fff3b4ce5cfac /crawl-ref/source/skills2.cc | |
parent | fef9f681531bf38dc5a969ba9d502418239f89c4 (diff) | |
download | crawl-ref-97c15a38617b933ae5efb6621a361e3fad48a091.tar.gz crawl-ref-97c15a38617b933ae5efb6621a361e3fad48a091.zip |
Add more miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5871 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r-- | crawl-ref/source/skills2.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc index ee99c323bb..4f8283aafd 100644 --- a/crawl-ref/source/skills2.cc +++ b/crawl-ref/source/skills2.cc @@ -1709,7 +1709,6 @@ static bool _player_knows_aptitudes() static void _display_skill_table(bool show_aptitudes) { menu_letter lcount = 'a'; - const int num_lines = get_number_of_lines(); cgotoxy(1, 1); textcolor(LIGHTGREY); @@ -1728,8 +1727,9 @@ static void _display_skill_table(bool show_aptitudes) int scrln = 3, scrcol = 1; int x; + // Don't want the help line to appear too far down a big window. - const int bottom_line = ((num_lines > 30) ? 30 : num_lines); + const int bottom_line = std::min(30, get_number_of_lines()); for (int i = 0; i < ndisplayed_skills; ++i) { |