Skip to content

SCUMM: Add workaround for missing smoke in MI1 VGA floppy lava maze #6553

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions engines/scumm/script_v5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2922,6 +2922,30 @@ void ScummEngine_v5::o5_startScript() {
// Save on IQ increment (= script 125 was executed).
if (_game.id == GID_INDY3 && script == 125)
((ScummEngine_v4 *)this)->updateIQPoints();

// WORKAROUND: In the CD version of Monkey Island 1, and the EGA
// version before it, there is animated smoke in parts of the lava maze
// beneath the monkey head. The VGA floppy version still calls the
// script to add the smoke, but the script is empty. We repliacte what
// the script did manually.

if (_game.id == GID_MONKEY_VGA && _roomResource == 39 && script == 211 && enhancementEnabled(kEnhRestoredContent)) {
Actor *a = derefActorSafe(12, "o5_startScript");

if (a) {
a->initActor(0);
a->setActorCostume(76);
a->setPalette(3, 8);
a->setPalette(2, 12);
a->setPalette(9, 4);
a->_ignoreBoxes = 1;
a->_forceClip = 1;
a->animateActor(250);
a->_room = _roomResource;
a->putActor(data[0], data[1]);
a->animateActor(6);
}
}
}

void ScummEngine_v5::o5_stopObjectCode() {
Expand Down
Loading