From 641e397625b9ca2d21e2577ff1002c3d55052aad Mon Sep 17 00:00:00 2001 From: toaster Date: Wed, 1 May 2024 14:50:05 +0100 Subject: [PATCH] Always show author on song credit, even if it's wider than we'd like Credit is more important than aesthetic --- src/s_sound.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/s_sound.c b/src/s_sound.c index c4d1993bf..237ec1a33 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -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 }