- fixed sound in Blood cutscenes.

This commit is contained in:
Christoph Oelckers 2020-01-04 00:07:20 +01:00
parent d4b32c535a
commit ed813562eb
2 changed files with 4 additions and 2 deletions

View file

@ -234,7 +234,7 @@ void credPlaySmk(const char *_pzSMK, const char *_pzWAV, int nWav)
else else
nScale = divscale16(200, nHeight); nScale = divscale16(200, nHeight);
if (nWav) if (nWav > 0)
sndStartWavID(nWav, 255); sndStartWavID(nWav, 255);
else else
{ {

View file

@ -175,7 +175,9 @@ void sndStartWavID(unsigned int nSound, int nVolume, int nChannel)
void sndStartWavDisk(const char *pzFile, int nVolume, int nChannel) void sndStartWavDisk(const char *pzFile, int nVolume, int nChannel)
{ {
return sndStartSample(pzFile, nVolume, nChannel); FString name = pzFile;
FixPathSeperator(name);
return sndStartSample(name, nVolume, nChannel);
} }
void sndKillAllSounds(void) void sndKillAllSounds(void)