SCI: Set _useMT32Track correctly for KQ5 Windows, thus simplifying the code
svn-id: r54465
This commit is contained in:
parent
7508260954
commit
ff58eea2ce
1 changed files with 5 additions and 8 deletions
|
@ -841,8 +841,10 @@ int MidiPlayer_Midi::open(ResourceManager *resMan) {
|
|||
}
|
||||
|
||||
// Don't do any mapping for the Windows version of KQ5CD
|
||||
if (g_sci && g_sci->getGameId() == GID_KQ5 && g_sci->getPlatform() == Common::kPlatformWindows)
|
||||
if (g_sci && g_sci->getGameId() == GID_KQ5 && g_sci->getPlatform() == Common::kPlatformWindows) {
|
||||
_useMT32Track = false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Resource *res = NULL;
|
||||
|
||||
|
@ -967,15 +969,10 @@ byte MidiPlayer_Midi::getPlayId() const {
|
|||
case SCI_VERSION_0_LATE:
|
||||
return 0x01;
|
||||
default:
|
||||
if (_isMt32) {
|
||||
if (_isMt32)
|
||||
return 0x0c;
|
||||
} else {
|
||||
// Use the GM play mask for the Windows version of KQ5CD.
|
||||
if (g_sci && g_sci->getGameId() == GID_KQ5 && g_sci->getPlatform() == Common::kPlatformWindows)
|
||||
return 0x07;
|
||||
|
||||
else
|
||||
return _useMT32Track ? 0x0c : 0x07;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue