Skip to content

Commit

Permalink
SCUMM: FREDDI - WORKAROUND for bug #4776, knocker floats while door i…
Browse files Browse the repository at this point in the history
…s open
  • Loading branch information
Ben Castricum committed Sep 13, 2021
1 parent 3cd8f0a commit ceb7c10
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions engines/scumm/he/script_v60he.cpp
Expand Up @@ -304,6 +304,17 @@ void ScummEngine_v60he::o60_setState() {
int state = pop();
int obj = pop();

// WORKAROUND for bug #4776, knocker floats while door is open
// This hides the knocker when the closed door object is set to hide.
if (_game.id == GID_FREDDI && _currentRoom == 7) {
if (_game.heversion == 71 && obj == 35 && state == 0) {
putState(26, 0);
}
if (_game.heversion == 73 && obj == 52 && state == 0) {
putState(43, 0);
}
}

if (state & 0x8000) {
state &= 0x7FFF;
putState(obj, state);
Expand Down

0 comments on commit ceb7c10

Please sign in to comment.