1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

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

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()