Skip to content

Commit

Permalink
Merge pull request #168 from mateusfavarin/main
Browse files Browse the repository at this point in the history
reserve bar: change back to bar counter
  • Loading branch information
mateusfavarin authored Jun 29, 2024
2 parents 251a32b + f250357 commit fcc1643
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions decompile/General/AltMods/Mods2.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ void DrawBoostBar(short posX, short posY, struct Driver* driver)

#ifdef USE_ONLINE
char barNumberStr[3];
barNumberStr[0] = (numBarsFilled / 100) + '0';
barNumberStr[1] = (numBarsFilled / 10) + '0';
barNumberStr[2] = (numBarsFilled % 10) + '0';
if (numBarsFilled < 10)
barNumberStr[0] = (numFullBarsFilled / 100) + '0';
barNumberStr[1] = (numFullBarsFilled / 10) + '0';
barNumberStr[2] = (numFullBarsFilled % 10) + '0';
if (numFullBarsFilled < 10)
{
DECOMP_DecalFont_DrawLineStrlen(&barNumberStr[2], 1, topX - 2, topY - 3, FONT_SMALL, PENTA_WHITE | JUSTIFY_RIGHT);
}
else if (numBarsFilled < 100)
else if (numFullBarsFilled < 100)
{
DECOMP_DecalFont_DrawLineStrlen(&barNumberStr[1], 2, topX - 2, topY - 3, FONT_SMALL, PENTA_WHITE | JUSTIFY_RIGHT);
}
Expand Down

0 comments on commit fcc1643

Please sign in to comment.