mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-26 00:40:56 +00:00
- fixed music names in Blood
This commit is contained in:
parent
66756bfa13
commit
06d2f9fcf1
1 changed files with 2 additions and 1 deletions
|
@ -402,7 +402,8 @@ bool levelTryPlayMusic(int nEpisode, int nLevel, bool bSetLevelSong)
|
||||||
snprintf(buffer, BMAX_PATH, "blood%02i.ogg", gEpisodeInfo[nEpisode].at28[nLevel].ate0);
|
snprintf(buffer, BMAX_PATH, "blood%02i.ogg", gEpisodeInfo[nEpisode].at28[nLevel].ate0);
|
||||||
else
|
else
|
||||||
strncpy(buffer, gEpisodeInfo[nEpisode].at28[nLevel].atd0, BMAX_PATH);
|
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)
|
if (bReturn || bSetLevelSong)
|
||||||
strncpy(gGameOptions.zLevelSong, buffer, BMAX_PATH);
|
strncpy(gGameOptions.zLevelSong, buffer, BMAX_PATH);
|
||||||
else *gGameOptions.zLevelSong = 0;
|
else *gGameOptions.zLevelSong = 0;
|
||||||
|
|
Loading…
Reference in a new issue