Skip to content

Commit

Permalink
SCUMM: MONKEY2: Skip extra code on FMTOWNS, fixes bug #2223
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Castricum authored and David Turner committed Oct 2, 2018
1 parent 0e91fe6 commit 9b56d7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions engines/scumm/script_v5.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -420,6 +420,16 @@ void ScummEngine_v5::o5_actorFromPos() {
void ScummEngine_v5::o5_actorOps() { void ScummEngine_v5::o5_actorOps() {
static const byte convertTable[20] = static const byte convertTable[20] =
{ 1, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 20 }; { 1, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 20 };
// Fix for bug #2233 "MI2 FM-TOWNS: Elaine's mappiece directly flies to treehouse"
// There's extra code inserted in script 45 from room 45 that caused that behaviour,
// the code below just skips the extra script code.
if (_game.id == GID_MONKEY2 && _game.platform == Common::kPlatformFMTowns &&
vm.slot[_currentScript].number == 45 && _currentRoom == 45 &&
(_scriptPointer - _scriptOrgPointer == 0xA9)) {
_scriptPointer += 0xCF - 0xA1;
writeVar(32811, 0); // clear bit 43
return;
}
int act = getVarOrDirectByte(PARAM_1); int act = getVarOrDirectByte(PARAM_1);
Actor *a = derefActor(act, "o5_actorOps"); Actor *a = derefActor(act, "o5_actorOps");
int i, j; int i, j;
Expand Down

0 comments on commit 9b56d7c

Please sign in to comment.