aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Hesse2008-05-25 13:02:23 +0000
committerSven Hesse2008-05-25 13:02:23 +0000
commitda222b1a4827062a94ec4ac5147aab1778a0f4aa (patch)
treeb00c6f207e3b4aace43fe081c032b707cc509c42
parent3f4d22338ed5b815a5a04cb74b473dc6b8b90c06 (diff)
downloadscummvm-rg350-da222b1a4827062a94ec4ac5147aab1778a0f4aa.tar.gz
scummvm-rg350-da222b1a4827062a94ec4ac5147aab1778a0f4aa.tar.bz2
scummvm-rg350-da222b1a4827062a94ec4ac5147aab1778a0f4aa.zip
Added a workaround for the nut rolling animation in the administration center in Woodruff
svn-id: r32269
-rw-r--r--engines/gob/inter_v2.cpp6
-rw-r--r--engines/gob/inter_v4.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/gob/inter_v2.cpp b/engines/gob/inter_v2.cpp
index 6b7607791e..db79971d88 100644
--- a/engines/gob/inter_v2.cpp
+++ b/engines/gob/inter_v2.cpp
@@ -1581,6 +1581,12 @@ void Inter_v2::o2_getImdInfo() {
varWidth = _vm->_parse->parseVarIndex();
varHeight = _vm->_parse->parseVarIndex();
+ // WORKAROUND: The nut rolling animation in the administration center
+ // in Woodruff is called "noixroul", but the scripts think it's "noixroule".
+ if ((_vm->getGameType() == kGameTypeWoodruff) &&
+ (!scumm_stricmp(_vm->_global->_inter_resStr, "noixroule")))
+ strcpy(_vm->_global->_inter_resStr, "noixroul");
+
_vm->_vidPlayer->writeVideoInfo(_vm->_global->_inter_resStr, varX, varY,
varFrames, varWidth, varHeight);
}
diff --git a/engines/gob/inter_v4.cpp b/engines/gob/inter_v4.cpp
index bc92fbf2b0..4c7c29255c 100644
--- a/engines/gob/inter_v4.cpp
+++ b/engines/gob/inter_v4.cpp
@@ -811,6 +811,12 @@ void Inter_v4::o4_playVmdOrMusic() {
evalExpr(0);
strncpy0(fileName, _vm->_global->_inter_resStr, 127);
+ // WORKAROUND: The nut rolling animation in the administration center
+ // in Woodruff is called "noixroul", but the scripts think it's "noixroule".
+ if ((_vm->getGameType() == kGameTypeWoodruff) &&
+ (!scumm_stricmp(fileName, "noixroule")))
+ strcpy(fileName, "noixroul");
+
x = _vm->_parse->parseValExpr();
y = _vm->_parse->parseValExpr();
startFrame = _vm->_parse->parseValExpr();