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);
|
widthused -= V_ThinStringWidth(credittext, 0);
|
||||||
|
|
||||||
#define MUSICCREDITAPPEND(field)\
|
#define MUSICCREDITAPPEND(field, force)\
|
||||||
if (field)\
|
if (field)\
|
||||||
{\
|
{\
|
||||||
work = va(" - %s", field);\
|
work = va(" - %s", field);\
|
||||||
|
|
@ -2203,7 +2203,7 @@ void S_LoadMusicCredit(void)
|
||||||
if (worklen <= len)\
|
if (worklen <= len)\
|
||||||
{\
|
{\
|
||||||
workwidth = V_ThinStringWidth(work, 0);\
|
workwidth = V_ThinStringWidth(work, 0);\
|
||||||
if (widthused >= workwidth)\
|
if (force || widthused >= workwidth)\
|
||||||
{\
|
{\
|
||||||
strncat(credittext, work, len);\
|
strncat(credittext, work, len);\
|
||||||
len -= worklen;\
|
len -= worklen;\
|
||||||
|
|
@ -2212,8 +2212,8 @@ void S_LoadMusicCredit(void)
|
||||||
}\
|
}\
|
||||||
}
|
}
|
||||||
|
|
||||||
MUSICCREDITAPPEND(def->author);
|
MUSICCREDITAPPEND(def->author, true);
|
||||||
MUSICCREDITAPPEND(def->source);
|
MUSICCREDITAPPEND(def->source, false);
|
||||||
|
|
||||||
#undef MUSICCREDITAPPEND
|
#undef MUSICCREDITAPPEND
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue