diff options
author | Travis Howell | 2007-05-28 11:22:53 +0000 |
---|---|---|
committer | Travis Howell | 2007-05-28 11:22:53 +0000 |
commit | 9d041cc0598212bb2ef95584f0213aa4d286e2a6 (patch) | |
tree | 6e46d52bf8521f66ff811981bbb425de6d8edc20 /engines/agos/zones.cpp | |
parent | 0d789e074e6ff1ed76e75619eae9d337d3faad29 (diff) | |
download | scummvm-rg350-9d041cc0598212bb2ef95584f0213aa4d286e2a6.tar.gz scummvm-rg350-9d041cc0598212bb2ef95584f0213aa4d286e2a6.tar.bz2 scummvm-rg350-9d041cc0598212bb2ef95584f0213aa4d286e2a6.zip |
Add sound effects code for Amiga and AtariST versions of Elvira 2.
svn-id: r26989
Diffstat (limited to 'engines/agos/zones.cpp')
-rw-r--r-- | engines/agos/zones.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/engines/agos/zones.cpp b/engines/agos/zones.cpp index 630d85d145..dd0d48d912 100644 --- a/engines/agos/zones.cpp +++ b/engines/agos/zones.cpp @@ -63,7 +63,15 @@ void AGOSEngine::loadZone(uint zoneNum) { vpe->vgaFile1End = _blockEnd; vpe->sfxFile = NULL; - if (!(getFeatures() & GF_ZLIBCOMP)) { + + if ((getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformAtariST) && + getGameType() == GType_ELVIRA2) { + // A singe sound file is used for Amiga and AtariST versions + if (loadVGASoundFile(1, 3)) { + vpe->sfxFile = _block; + vpe->sfxFileEnd = _blockEnd; + } + } else if (!(getFeatures() & GF_ZLIBCOMP)) { if (loadVGASoundFile(zoneNum, 3)) { vpe->sfxFile = _block; vpe->sfxFileEnd = _blockEnd; |