Fix the vertical position of %d ADD-ON(S) LOADED if there are a limited number of add-on results

This commit is contained in:
toaster 2022-09-04 22:02:27 +01:00
parent 49f7552009
commit 9d26fa2040

View file

@ -4361,6 +4361,11 @@ void M_DrawAddons(void)
if (m != (ssize_t)sizedirmenu)
V_DrawString(19, y-12 + (skullAnimCounter/5), highlightflags, "\x1B");
if (m < (2*numaddonsshown + 1))
{
y += ((2*numaddonsshown + 1)-m)*addonsseperation;
}
y -= 2;
V_DrawSmallScaledPatch(x, y, ((!majormods) ? 0 : V_TRANSLUCENT), addonsp[NUM_EXT+4]);