- fixed music names in Blood

This commit is contained in:
Christoph Oelckers 2019-12-06 20:31:17 +01:00
parent 66756bfa13
commit 06d2f9fcf1

View file

@ -402,7 +402,8 @@ bool levelTryPlayMusic(int nEpisode, int nLevel, bool bSetLevelSong)
snprintf(buffer, BMAX_PATH, "blood%02i.ogg", gEpisodeInfo[nEpisode].at28[nLevel].ate0);
else
strncpy(buffer, gEpisodeInfo[nEpisode].at28[nLevel].atd0, BMAX_PATH);
bool bReturn = !!sndPlaySong(gEpisodeInfo[nEpisode].at28[nLevel].atd0, buffer, true);
if (!strchr(buffer, '.')) strcat(buffer, ".mid");
bool bReturn = !!sndPlaySong(gEpisodeInfo[nEpisode].at28[nLevel].at0, buffer, true);
if (bReturn || bSetLevelSong)
strncpy(gGameOptions.zLevelSong, buffer, BMAX_PATH);
else *gGameOptions.zLevelSong = 0;