Skip to content

Commit

Permalink
SCUMM: shorten delay for dungeon door closing action
Browse files Browse the repository at this point in the history
Escaping with only one kid should not be possible anymore.
  • Loading branch information
tobigun committed Feb 11, 2012
1 parent cbae5c7 commit 4519e56
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions engines/scumm/script_v2.cpp
Expand Up @@ -1433,6 +1433,17 @@ void ScummEngine_v2::o2_delay() {
delay |= fetchScriptByte() << 16;
delay = 0xFFFFFF - delay;

// WORKAROUND: walking speed in the original v0/v1 interpreter
// is sometimes slower (e.g. during scrolling) than in ScummVM.
// Hence, the delay for the door-closing action in the dungeon
// is to long, so a single kid is able to escape -> shorten delay.
int script = vm.slot[_currentScript].number;
if ((_game.version == 0 && script == 132) ||
(_game.version == 1 && script == 137)) {
if (delay == 180)
delay = 120;
}

vm.slot[_currentScript].delay = delay;
vm.slot[_currentScript].status = ssPaused;
o5_breakHere();
Expand Down

0 comments on commit 4519e56

Please sign in to comment.