Omit hyphen in replay folder name if compbranch is empty (detached HEAD)

This commit is contained in:
James R 2023-01-05 18:36:41 -08:00
parent 94e3050f10
commit 1f827a9c25

View file

@ -7177,7 +7177,10 @@ static void P_InitGametype(void)
int parts;
#ifdef DEVELOP
sprintf(ver, "%s-%s", compbranch, comprevision);
if (strcmp(compbranch, ""))
sprintf(ver, "%s-%s", compbranch, comprevision);
else
strcpy(ver, comprevision);
#else
strcpy(ver, VERSIONSTRING);
#endif