mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 16:03:05 +00:00
Fix FOA regression I caused.
svn-id: r14562
This commit is contained in:
parent
f2c3731f7b
commit
bca746e802
@ -46,14 +46,17 @@ void ScummEngine::unkMessage1(const byte *msg) {
|
||||
|
||||
if (buffer[0] == 0xFF && buffer[1] == 10) {
|
||||
uint32 a, b;
|
||||
int channel = 0;
|
||||
|
||||
a = buffer[2] | (buffer[3] << 8) | (buffer[6] << 16) | (buffer[7] << 24);
|
||||
b = buffer[10] | (buffer[11] << 8) | (buffer[14] << 16) | (buffer[15] << 24);
|
||||
|
||||
// Sam and Max uses a caching system, printing empty messages
|
||||
// and setting VAR_V6_SOUNDMODE beforehand. See patch 609791.
|
||||
if (VAR(VAR_V6_SOUNDMODE) != 2)
|
||||
_sound->talkSound(a, b, 1, VAR(VAR_V6_SOUNDMODE));
|
||||
if (_gameId == GID_SAMNMAX && VAR(VAR_V6_SOUNDMODE) != 2)
|
||||
channel = VAR(VAR_V6_SOUNDMODE);
|
||||
|
||||
_sound->talkSound(a, b, 1, channel);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user