aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTravis Howell2006-10-15 07:51:27 +0000
committerTravis Howell2006-10-15 07:51:27 +0000
commit707b733f431edaad0dba91e4d66b5cf21b2b2355 (patch)
tree93490471669398ced8453da76f4108b82a22dab1 /engines
parent8925e814a75ea7a2464784c6587377ab054e6ad2 (diff)
downloadscummvm-rg350-707b733f431edaad0dba91e4d66b5cf21b2b2355.tar.gz
scummvm-rg350-707b733f431edaad0dba91e4d66b5cf21b2b2355.tar.bz2
scummvm-rg350-707b733f431edaad0dba91e4d66b5cf21b2b2355.zip
Add another filename difference in Amiga versions
svn-id: r24334
Diffstat (limited to 'engines')
-rw-r--r--engines/agos/res.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp
index 94046a1e06..98564154c1 100644
--- a/engines/agos/res.cpp
+++ b/engines/agos/res.cpp
@@ -674,9 +674,15 @@ bool AGOSEngine::loadVGAFile(uint id, uint type) {
else
sprintf(filename, "%.1d%d.out", id, type);
} else if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2) {
- sprintf(filename, "%.2d%d.pkd", id, type);
+ if (type == 3)
+ sprintf(filename, "%.2d%d.out", id, type);
+ else
+ sprintf(filename, "%.2d%d.pkd", id, type);
} else {
- sprintf(filename, "%.3d%d.pkd", id, type);
+ if (type == 3)
+ sprintf(filename, "%.3d%d.out", id, type);
+ else
+ sprintf(filename, "%.3d%d.pkd", id, type);
}
} else {
if (getGameType() == GType_ELVIRA1 || getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) {