From 707b733f431edaad0dba91e4d66b5cf21b2b2355 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Sun, 15 Oct 2006 07:51:27 +0000 Subject: Add another filename difference in Amiga versions svn-id: r24334 --- engines/agos/res.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines') 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) { -- cgit v1.2.3