From da222b1a4827062a94ec4ac5147aab1778a0f4aa Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Sun, 25 May 2008 13:02:23 +0000 Subject: Added a workaround for the nut rolling animation in the administration center in Woodruff svn-id: r32269 --- engines/gob/inter_v2.cpp | 6 ++++++ engines/gob/inter_v4.cpp | 6 ++++++ 2 files changed, 12 insertions(+) (limited to 'engines/gob') 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(); -- cgit v1.2.3