From f892a750b20a7e6124d13a58be6940e6b8835acb Mon Sep 17 00:00:00 2001 From: Marcus Minhorst Date: Mon, 15 Sep 2025 19:03:30 -0400 Subject: [PATCH] Silence integer division warning --- src/common/console/c_console.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/console/c_console.cpp b/src/common/console/c_console.cpp index 303662a68..15a196f2b 100644 --- a/src/common/console/c_console.cpp +++ b/src/common/console/c_console.cpp @@ -628,12 +628,12 @@ void C_DrawConsole () if (textScale == 1) DrawText(twod, CurrentConsoleFont, CR_ORANGE, twod->GetWidth() - 8 - CurrentConsoleFont->StringWidth (GetVersionString()), - ConBottom / textScale - CurrentConsoleFont->GetHeight() - 4, + round((float)ConBottom / textScale) - CurrentConsoleFont->GetHeight() - 4, GetVersionString(), TAG_DONE); else - DrawText(twod, CurrentConsoleFont, CR_ORANGE, twod->GetWidth() / textScale - 8 - + DrawText(twod, CurrentConsoleFont, CR_ORANGE, (float)twod->GetWidth() / textScale - 8 - CurrentConsoleFont->StringWidth(GetVersionString()), - ConBottom / textScale - CurrentConsoleFont->GetHeight() - 4, + round((float)ConBottom / textScale) - CurrentConsoleFont->GetHeight() - 4, GetVersionString(), DTA_VirtualWidth, twod->GetWidth() / textScale, DTA_VirtualHeight, twod->GetHeight() / textScale,