K_DrawChallenges: Technically possible to have 3-digit Chao Keys, so scooch just a hair further

This commit is contained in:
toaster 2023-03-15 13:19:01 +00:00
parent bb98db6fce
commit 2ec3cf498d

View file

@ -5533,7 +5533,11 @@ challengedesc:
offs /= 2; offs /= 2;
if (gamedata->chaokeys > 9) if (gamedata->chaokeys > 9)
{
offs -= 6; offs -= 6;
if (gamedata->chaokeys > 99)
offs -= 2; // as far as we can go
}
V_DrawFixedPatch((8+offs)*FRACUNIT, 5*FRACUNIT, FRACUNIT, 0, key, NULL); V_DrawFixedPatch((8+offs)*FRACUNIT, 5*FRACUNIT, FRACUNIT, 0, key, NULL);
V_DrawKartString((27+offs), 9-challengesmenu.unlockcount[CC_CHAOANIM], 0, va("%u", gamedata->chaokeys)); V_DrawKartString((27+offs), 9-challengesmenu.unlockcount[CC_CHAOANIM], 0, va("%u", gamedata->chaokeys));