mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
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:
parent
712f15719a
commit
641e397625
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue