A little extra cleanup to M_DrawChallengeTile

This commit is contained in:
toaster 2022-12-11 20:28:41 +00:00
parent b92af9222f
commit ae43e3a6ce

View file

@ -4485,8 +4485,8 @@ void M_DrawAddons(void)
static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili) static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili)
{ {
unlockable_t *ref = NULL; unlockable_t *ref = NULL;
patch_t *pat; patch_t *pat = missingpat;
UINT8 *colormap; UINT8 *colormap = NULL;
fixed_t siz; fixed_t siz;
UINT8 id, num, work; UINT8 id, num, work;
@ -4497,7 +4497,6 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili
if (num >= MAXUNLOCKABLES) if (num >= MAXUNLOCKABLES)
{ {
V_DrawFill(x, y, 16, 16, challengesbordercolor); V_DrawFill(x, y, 16, 16, challengesbordercolor);
ref = NULL;
goto drawborder; goto drawborder;
} }
@ -4514,8 +4513,6 @@ static void M_DrawChallengeTile(INT16 i, INT16 j, INT32 x, INT32 y, boolean hili
goto drawborder; goto drawborder;
} }
pat = missingpat;
colormap = NULL;
if (ref->icon != NULL && ref->icon[0]) if (ref->icon != NULL && ref->icon[0])
{ {
pat = W_CachePatchName(ref->icon, PU_CACHE); pat = W_CachePatchName(ref->icon, PU_CACHE);