From a8cdffbc8f00db6cc339ccd3f56feb194edc0b47 Mon Sep 17 00:00:00 2001 From: Victor Gabriel Savu Date: Sun, 13 Sep 2026 19:00:20 +0200 Subject: [PATCH] Use %d to print an integer On 64-bit systems, using %ld to print an integer makes the credit display ingame show huge values. --- code/credits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/credits.cpp b/code/credits.cpp index 5c709b1a3..0051b9186 100644 --- a/code/credits.cpp +++ b/code/credits.cpp @@ -137,7 +137,7 @@ void CreditClass::Graphic_Logic(bool forced) Fancy_Text_Print(TXT_TIME_FORMAT_NO_HOURS, *SidebarSurface, SidebarSurface->Get_Rect(), Point2D(xx, 0), ColorSchemes[0], TBLACK, TextPrintType(TPF_USE_GRAD_PAL|TPF_CENTER|TPF_METAL12), minutes, seconds); } } else { - Fancy_Text_Print("%ld", *SidebarSurface, SidebarSurface->Get_Rect(), Point2D(xx, 0), ColorSchemes[0], TBLACK, TextPrintType(TPF_USE_GRAD_PAL|TPF_CENTER|TPF_METAL12), Current); + Fancy_Text_Print("%d", *SidebarSurface, SidebarSurface->Get_Rect(), Point2D(xx, 0), ColorSchemes[0], TBLACK, TextPrintType(TPF_USE_GRAD_PAL|TPF_CENTER|TPF_METAL12), Current); } if (Scen->MissionTimer.Is_Active()) {