Fix a mistake

This commit is contained in:
Lactozilla 2024-05-20 02:54:45 -03:00
parent 4502e67f0f
commit 0186e5bce5

View file

@ -4015,11 +4015,11 @@ static void M_DrawThermo(INT32 x, INT32 y, consvar_t *cv)
lumpnum_t leftlump, rightlump, centerlump[2], cursorlump; lumpnum_t leftlump, rightlump, centerlump[2], cursorlump;
patch_t *p; patch_t *p;
leftlump = W_CheckNumForPatchName("M_THERML"); leftlump = W_GetNumForPatchName("M_THERML");
rightlump = W_CheckNumForPatchName("M_THERMR"); rightlump = W_GetNumForPatchName("M_THERMR");
centerlump[0] = W_CheckNumForPatchName("M_THERMM"); centerlump[0] = W_GetNumForPatchName("M_THERMM");
centerlump[1] = W_CheckNumForPatchName("M_THERMM"); centerlump[1] = W_GetNumForPatchName("M_THERMM");
cursorlump = W_CheckNumForPatchName("M_THERMO"); cursorlump = W_GetNumForPatchName("M_THERMO");
V_DrawScaledPatch(xx, y, 0, p = W_CachePatchNum(leftlump,PU_PATCH)); V_DrawScaledPatch(xx, y, 0, p = W_CachePatchNum(leftlump,PU_PATCH));
xx += p->width - p->leftoffset; xx += p->width - p->leftoffset;