From 848115d1054da580112f3b40b848755db30c51ec Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 21 Jul 2026 14:53:13 +0200 Subject: [PATCH] print the unedited musicdef field for whitespace warning otherwise this may just show whitespaces where they arent ones originally --- src/s_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s_sound.c b/src/s_sound.c index 0a81764c7..d59a98887 100644 --- a/src/s_sound.c +++ b/src/s_sound.c @@ -1357,7 +1357,7 @@ static boolean ReadMusicDefFields(UINT16 wadnum, int line, char *stoken, musicde int err = 0;\ STRBUFCPY(def->field, textline);\ for (textline = def->field; *textline; textline++) {\ - if (err == 0 && *textline == ' ') {err = 1; CONS_Alert(CONS_WARNING, "MUSICDEF: Erroneous whitespace detected in field '%s': '%s'.\n(file %s, line %d) Musicdef might not work correctly!\n", stoken, def->field, wadfiles[wadnum]->filename, line);}\ + if (err == 0 && *textline == ' ') {err = 1; CONS_Alert(CONS_WARNING, "MUSICDEF: Erroneous whitespace detected in field '%s': '%s'.\n(file %s, line %d) Musicdef might not work correctly!\n", stoken, value, wadfiles[wadnum]->filename, line);}\ if (*textline == '_') *textline = ' ';\ }