From 557243d397b9233e9eb709a83a19654e4e8cdcba Mon Sep 17 00:00:00 2001 From: olevole Date: Fri, 7 Feb 2025 16:18:51 +0300 Subject: [PATCH] Fix credits output xx declared as "int" while it is printed as "long": in some cases this leads to incorrect output, see Issue #1025 --- tiberiandawn/credits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiberiandawn/credits.cpp b/tiberiandawn/credits.cpp index b05b8371..78e116d3 100644 --- a/tiberiandawn/credits.cpp +++ b/tiberiandawn/credits.cpp @@ -109,7 +109,7 @@ void CreditClass::Graphic_Logic(bool forced) unsigned fore = factor ? 11 : WHITE; TabClass::Draw_Credits_Tab(); - Fancy_Text_Print("%ld", xx, 0, fore, TBLACK, flags, Current); + Fancy_Text_Print("%d", xx, 0, fore, TBLACK, flags, Current); IsToRedraw = false; IsAudible = false;