Remove unnecessary ceil call

This commit is contained in:
Aaron van Geffen 2017-10-30 16:31:03 +01:00 committed by Michael Steenbeek
parent 076be24bb9
commit 765e3d9a4f
1 changed files with 1 additions and 1 deletions

View File

@ -413,7 +413,7 @@ void console_scroll(sint32 linesToScroll)
// Calculates the amount of visible lines, based on the console size, excluding the input line.
static sint32 console_get_num_visible_lines()
{
return ceil((_consoleBottom - _consoleTop) / font_get_line_height(gCurrentFontSpriteBase)) - 1;
return ((_consoleBottom - _consoleTop) / font_get_line_height(gCurrentFontSpriteBase)) - 1;
}
void console_clear()