mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 22:44:30 -04:00
remove trailing spaces in demo footer (#456)
This commit is contained in:
parent
d22b631a10
commit
4a2e5a899d
@ -1627,7 +1627,7 @@ void ProcessDehFile(const char *filename, char *outfilename, int lumpnum)
|
||||
printf("-deh file %s not found\n",filename);
|
||||
return; // should be checked up front anyway
|
||||
}
|
||||
tmp = M_StringJoin("\"", M_BaseName(filename), "\" ", NULL);
|
||||
tmp = M_StringJoin(" \"", M_BaseName(filename), "\"", NULL);
|
||||
M_StringAdd(&dehfiles, tmp);
|
||||
(free)(tmp);
|
||||
infile.lump = NULL;
|
||||
|
@ -3306,40 +3306,36 @@ static void G_AddDemoFooter(void)
|
||||
int i;
|
||||
|
||||
str = M_StringJoin(PROJECT_STRING, DEMO_FOOTER_SEPARATOR,
|
||||
"-iwad \"", M_BaseName(wadfiles[0]), "\" ", NULL);
|
||||
"-iwad \"", M_BaseName(wadfiles[0]), "\"", NULL);
|
||||
for (i = 1; wadfiles[i]; i++)
|
||||
{
|
||||
if (i == 1)
|
||||
M_StringAdd(&str, "-file ");
|
||||
M_StringAdd(&str, " -file");
|
||||
|
||||
tmp = M_StringJoin("\"", M_BaseName(wadfiles[i]), "\" ", NULL);
|
||||
tmp = M_StringJoin(" \"", M_BaseName(wadfiles[i]), "\"", NULL);
|
||||
M_StringAdd(&str, tmp);
|
||||
(free)(tmp);
|
||||
}
|
||||
|
||||
if (dehfiles)
|
||||
{
|
||||
M_StringAdd(&str, "-deh ");
|
||||
M_StringAdd(&str, " -deh");
|
||||
M_StringAdd(&str, dehfiles);
|
||||
}
|
||||
|
||||
if (demo_compatibility)
|
||||
{
|
||||
M_StringAdd(&str, "-complevel vanilla ");
|
||||
tmp = M_StringJoin("-gameversion ", GetGameVersionCmdline(), " ", NULL);
|
||||
M_StringAdd(&str, " -complevel vanilla");
|
||||
tmp = M_StringJoin(" -gameversion ", GetGameVersionCmdline(), NULL);
|
||||
M_StringAdd(&str, tmp);
|
||||
(free)(tmp);
|
||||
}
|
||||
|
||||
if (coop_spawns)
|
||||
{
|
||||
M_StringAdd(&str, "-coop_spawns");
|
||||
M_StringAdd(&str, " -coop_spawns");
|
||||
}
|
||||
|
||||
tmp = str + strlen(str) - 1;
|
||||
while (*tmp == ' ')
|
||||
*tmp-- = '\0';
|
||||
|
||||
M_StringAdd(&str, DEMO_FOOTER_SEPARATOR);
|
||||
|
||||
len = strlen(str);
|
||||
|
Loading…
x
Reference in New Issue
Block a user