mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-29 12:40:58 +00:00
Merge branch 'nightsmode-menu-fix' into 'master'
Fix time emblem overlapping best time on NiGHTS Mode menu (Resolves #353) Closes #353 See merge request STJr/SRB2Internal!539
This commit is contained in:
commit
3a12c13e50
1 changed files with 11 additions and 4 deletions
15
src/m_menu.c
15
src/m_menu.c
|
@ -9388,6 +9388,7 @@ void M_DrawNightsAttackMenu(void)
|
||||||
{
|
{
|
||||||
emblem_t *em;
|
emblem_t *em;
|
||||||
INT32 yHeight;
|
INT32 yHeight;
|
||||||
|
INT32 xpos;
|
||||||
patch_t *PictureOfLevel;
|
patch_t *PictureOfLevel;
|
||||||
lumpnum_t lumpnum;
|
lumpnum_t lumpnum;
|
||||||
char beststr[40];
|
char beststr[40];
|
||||||
|
@ -9447,17 +9448,23 @@ void M_DrawNightsAttackMenu(void)
|
||||||
{
|
{
|
||||||
switch (em->type)
|
switch (em->type)
|
||||||
{
|
{
|
||||||
case ET_NGRADE: yHeight = 48; break;
|
case ET_NGRADE:
|
||||||
case ET_NTIME: yHeight = 68; break;
|
xpos = 104+38;
|
||||||
|
yHeight = 48;
|
||||||
|
break;
|
||||||
|
case ET_NTIME:
|
||||||
|
xpos = 104+76;
|
||||||
|
yHeight = 68;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
goto skipThisOne;
|
goto skipThisOne;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (em->collected)
|
if (em->collected)
|
||||||
V_DrawSmallMappedPatch(104+38, yHeight+lsheadingheight/2, 0, W_CachePatchName(M_GetEmblemPatch(em, false), PU_CACHE),
|
V_DrawSmallMappedPatch(xpos, yHeight+lsheadingheight/2, 0, W_CachePatchName(M_GetEmblemPatch(em, false), PU_CACHE),
|
||||||
R_GetTranslationColormap(TC_DEFAULT, M_GetEmblemColor(em), GTC_CACHE));
|
R_GetTranslationColormap(TC_DEFAULT, M_GetEmblemColor(em), GTC_CACHE));
|
||||||
else
|
else
|
||||||
V_DrawSmallScaledPatch(104+38, yHeight+lsheadingheight/2, 0, W_CachePatchName("NEEDIT", PU_CACHE));
|
V_DrawSmallScaledPatch(xpos, yHeight+lsheadingheight/2, 0, W_CachePatchName("NEEDIT", PU_CACHE));
|
||||||
|
|
||||||
skipThisOne:
|
skipThisOne:
|
||||||
em = M_GetLevelEmblems(-1);
|
em = M_GetLevelEmblems(-1);
|
||||||
|
|
Loading…
Reference in a new issue