mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
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:
parent
6a06a74886
commit
ba7c266f89
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue