aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/res_snd.cpp
diff options
context:
space:
mode:
authorTravis Howell2008-12-22 00:32:01 +0000
committerTravis Howell2008-12-22 00:32:01 +0000
commit5ef6d928b9c007d7ee5efeded1f426d1c7892ab9 (patch)
tree28103a078f64fce0ba3df64878df357d6410fae8 /engines/agos/res_snd.cpp
parente07d509100d2543877c53726e1015b9d5d155db6 (diff)
downloadscummvm-rg350-5ef6d928b9c007d7ee5efeded1f426d1c7892ab9.tar.gz
scummvm-rg350-5ef6d928b9c007d7ee5efeded1f426d1c7892ab9.tar.bz2
scummvm-rg350-5ef6d928b9c007d7ee5efeded1f426d1c7892ab9.zip
Cleanup.
svn-id: r35477
Diffstat (limited to 'engines/agos/res_snd.cpp')
-rw-r--r--engines/agos/res_snd.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/engines/agos/res_snd.cpp b/engines/agos/res_snd.cpp
index bbc9d2d4e0..5ac2f06a28 100644
--- a/engines/agos/res_snd.cpp
+++ b/engines/agos/res_snd.cpp
@@ -359,19 +359,9 @@ bool AGOSEngine::loadVGASoundFile(uint16 id, uint8 type) {
uint32 srcSize, dstSize;
if (getPlatform() == Common::kPlatformAmiga || getPlatform() == Common::kPlatformAtariST) {
- if (getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) {
- if (id == 20)
- sprintf(filename, "D%d.out", type);
- else if (id == 26)
- sprintf(filename, "J%d.out", type);
- else if (id == 27)
- sprintf(filename, "K%d.out", type);
- else if (id == 33)
- sprintf(filename, "Q%d.out", type);
- else if (id == 34)
- sprintf(filename, "R%d.out", type);
- else
- sprintf(filename, "%.1d%d.out", id, type);
+ if (getGameType() == GType_ELVIRA1 && (getFeatures() & GF_DEMO) &&
+ getPlatform() == Common::kPlatformAmiga) {
+ sprintf(filename, "%c%d.out", 48 + id, type);
} else if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2) {
sprintf(filename, "%.2d%d.out", id, type);
} else {