summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/skills2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/skills2.cc')
-rw-r--r--crawl-ref/source/skills2.cc4
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)
{