aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agos/res.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/agos/res.cpp b/engines/agos/res.cpp
index 98564154c1..d2dbe5154e 100644
--- a/engines/agos/res.cpp
+++ b/engines/agos/res.cpp
@@ -703,7 +703,8 @@ bool AGOSEngine::loadVGAFile(uint id, uint type) {
}
dstSize = srcSize = in.size();
- if (getFeatures() & GF_CRUNCHED) {
+ if ((getGameType() == GType_ELVIRA1 && getFeatures() & GF_DEMO) ||
+ (getFeatures() & GF_CRUNCHED && type != 3)) {
byte *srcBuffer = (byte *)malloc(srcSize);
if (in.read(srcBuffer, srcSize) != srcSize)
error("loadVGAFile: Read failed");