mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-28 01:06:40 +00:00
Merge branch 'always-musicdef-author' into 'master'
Always show author on song credit (resolves #1332) Closes #1332 See merge request KartKrew/Kart!2333
This commit is contained in:
commit
7bb49a9f67
2 changed files with 14 additions and 5 deletions
|
|
@ -8833,7 +8833,16 @@ void M_DrawSoundTest(void)
|
|||
if (soundtest.current->source)
|
||||
V_DrawThinString(x+1, (y += 10), 0, soundtest.current->source);
|
||||
if (soundtest.current->composers)
|
||||
V_DrawThinString(x+1, (y += 10), 0, soundtest.current->composers);
|
||||
{
|
||||
char *wrappedcomposers = V_ScaledWordWrap(
|
||||
(BASEVIDWIDTH - ((x+1)*2)) << FRACBITS,
|
||||
FRACUNIT, FRACUNIT, FRACUNIT,
|
||||
0, TINY_FONT,
|
||||
soundtest.current->composers
|
||||
);
|
||||
V_DrawThinString(x+1, (y += 10), 0, wrappedcomposers);
|
||||
Z_Free(wrappedcomposers);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -2204,7 +2204,7 @@ void S_LoadMusicCredit(void)
|
|||
|
||||
widthused -= V_ThinStringWidth(credittext, 0);
|
||||
|
||||
#define MUSICCREDITAPPEND(field)\
|
||||
#define MUSICCREDITAPPEND(field, force)\
|
||||
if (field)\
|
||||
{\
|
||||
work = va(" - %s", field);\
|
||||
|
|
@ -2212,7 +2212,7 @@ void S_LoadMusicCredit(void)
|
|||
if (worklen <= len)\
|
||||
{\
|
||||
workwidth = V_ThinStringWidth(work, 0);\
|
||||
if (widthused >= workwidth)\
|
||||
if (force || widthused >= workwidth)\
|
||||
{\
|
||||
strncat(credittext, work, len);\
|
||||
len -= worklen;\
|
||||
|
|
@ -2221,8 +2221,8 @@ void S_LoadMusicCredit(void)
|
|||
}\
|
||||
}
|
||||
|
||||
MUSICCREDITAPPEND(def->author);
|
||||
MUSICCREDITAPPEND(def->source);
|
||||
MUSICCREDITAPPEND(def->author, true);
|
||||
MUSICCREDITAPPEND(def->source, false);
|
||||
|
||||
#undef MUSICCREDITAPPEND
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue