Always show author on song credit, even if it's wider than we'd like

Credit is more important than aesthetic
This commit is contained in:
toaster 2024-05-01 14:50:05 +01:00
parent 712f15719a
commit 641e397625

View file

@ -2195,7 +2195,7 @@ void S_LoadMusicCredit(void)
widthused -= V_ThinStringWidth(credittext, 0);
#define MUSICCREDITAPPEND(field)\
#define MUSICCREDITAPPEND(field, force)\
if (field)\
{\
work = va(" - %s", field);\
@ -2203,7 +2203,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;\
@ -2212,8 +2212,8 @@ void S_LoadMusicCredit(void)
}\
}
MUSICCREDITAPPEND(def->author);
MUSICCREDITAPPEND(def->source);
MUSICCREDITAPPEND(def->author, true);
MUSICCREDITAPPEND(def->source, false);
#undef MUSICCREDITAPPEND
}