aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKari Salminen2008-01-03 09:43:50 +0000
committerKari Salminen2008-01-03 09:43:50 +0000
commite75207d9d7d60b11c7a5dac769c981e80d244618 (patch)
tree57030d8028cab390a74e2f50cea5e4e4e3658f64 /engines
parent4130d04f77bdcad3bb15328ccafc5abd24e65765 (diff)
downloadscummvm-rg350-e75207d9d7d60b11c7a5dac769c981e80d244618.tar.gz
scummvm-rg350-e75207d9d7d60b11c7a5dac769c981e80d244618.tar.bz2
scummvm-rg350-e75207d9d7d60b11c7a5dac769c981e80d244618.zip
Made AGIPAL-loading more lenient with errors. Added AGIPAL-flag to Naturette 3. These together fix Naturette 3's intro (No more long shakings).
svn-id: r30193
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/detection.cpp2
-rw-r--r--engines/agi/graphics.cpp12
2 files changed, 9 insertions, 5 deletions
diff --git a/engines/agi/detection.cpp b/engines/agi/detection.cpp
index 94947f1395..2e0d324d66 100644
--- a/engines/agi/detection.cpp
+++ b/engines/agi/detection.cpp
@@ -1950,7 +1950,7 @@ static const AGIGameDescription gameDescriptions[] = {
FANMADE("Naturette 1 (English v1.3)", "f15bbf999ac55ebd404aa1eb84f7c1d9"),
FANMADE_L("Naturette 1 (French v1.2)", "d3665622cc41aeb9c7ecf4fa43f20e53", Common::FR_FRA),
FANMADE_F("Naturette 2: Daughter of the Moon (v1.0)", "bdf76a45621c7f56d1c9d40292c6137a", GF_AGIMOUSE|GF_AGIPAL),
- FANMADE_F("Naturette 3: Adventure in Treeworld (v1.0a)", "6dbb0e7fc75fec442e6d9e5a06f1530e", GF_AGIMOUSE),
+ FANMADE_F("Naturette 3: Adventure in Treeworld (v1.0a)", "6dbb0e7fc75fec442e6d9e5a06f1530e", GF_AGIMOUSE|GF_AGIPAL),
FANMADE_F("Naturette 4: From a Planet to Another Planet (Not Finished)", "13be8cd9cf35aeff0a39b8757057fbc8", GF_AGIMOUSE),
FANMADE("New AGI Hangman Test", "d69c0e9050ccc29fd662b74d9fc73a15"),
FANMADE("Nick's Quest - In Pursuit of QuakeMovie (v2.1 Gold)", "e29cbf9222551aee40397fabc83eeca0"),
diff --git a/engines/agi/graphics.cpp b/engines/agi/graphics.cpp
index 63565bac20..7a7d234ae8 100644
--- a/engines/agi/graphics.cpp
+++ b/engines/agi/graphics.cpp
@@ -841,8 +841,10 @@ void GfxMgr::setAGIPal(int p0) {
sprintf(filename, "pal.%d", p0);
Common::File agipal;
- if (!agipal.open(filename))
- error("Couldn't open AGIPAL palette file '%s'", filename);
+ if (!agipal.open(filename)) {
+ warning("Couldn't open AGIPAL palette file '%s'. Not changing palette", filename);
+ return; // Needed at least by Naturette 3 which uses AGIPAL but provides no palette files
+ }
//Chunk0 holds colors 0-7
agipal.read(&_agipalPalette[0], 24);
@@ -857,8 +859,10 @@ void GfxMgr::setAGIPal(int p0) {
//Chunks4-7 are duplicates of chunks0-3
- if (agipal.ioFailed())
- error("Couldn't read AGIPAL palette from '%s'", filename);
+ if (agipal.ioFailed()) {
+ warning("Couldn't read AGIPAL palette from '%s'. Not changing palette", filename);
+ return;
+ }
_agipalFileNum = p0;