Skip to content

Commit

Permalink
Fix credits output
Browse files Browse the repository at this point in the history
xx declared as "int" while it is printed as "long": in some cases this leads to
incorrect output, see Issue #1025
  • Loading branch information
olevole authored and OmniBlade committed Feb 7, 2025
1 parent fa78f6d commit 557243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tiberiandawn/credits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 557243d

Please sign in to comment.