CON_MUSIC: Accept "." as meaning "do nothing to this slot"

git-svn-id: https://svn.eduke32.com/eduke32@7801 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2019-07-18 01:25:29 +00:00 committed by Christoph Oelckers
parent 6a06a74886
commit ba7c266f89

View file

@ -2016,6 +2016,9 @@ void C_DefineMusic(int volumeNum, int levelNum, const char *fileName)
Bassert((unsigned)volumeNum < MAXVOLUMES+1); Bassert((unsigned)volumeNum < MAXVOLUMES+1);
Bassert((unsigned)levelNum < MAXLEVELS); Bassert((unsigned)levelNum < MAXLEVELS);
if (strcmp(fileName, "/.") == 0)
return;
map_t *const pMapInfo = &g_mapInfo[(MAXLEVELS*volumeNum)+levelNum]; map_t *const pMapInfo = &g_mapInfo[(MAXLEVELS*volumeNum)+levelNum];
Xfree(pMapInfo->musicfn); Xfree(pMapInfo->musicfn);