Ticket #9170: bug2823309.patch

File bug2823309.patch, 1.3 KB (added by SF/toneman1138, 15 years ago)

Bug fix: Guybrush walking in place when examining certain objects with 'e' key

  • engines/scumm/script_v6.cpp

     
    745745                return;
    746746        }
    747747
     748        // WORKAROUND bug #2823309: With a few objects in CoMI, examining with the
     749        // 'e' key instead of the verb coin while walking leads to guybrush walking
     750        // in place while the sound-clip of his observation plays. This seems to
     751        // be the case only with objects that do not enforce a walk-to point on Guybrush
     752        // before he examines them. This is a manual override that detects if the player
     753        // is examining one of these known objects and makes Guybrush stop walking at the
     754        // start of the script.
     755        if (_game.id == GID_CMI &&
     756                ((script == 204 && _currentRoom == 15 && vm.slot[_currentScript].number == 421) ||
     757                (script == 38 && (_currentRoom == 60 || _currentRoom == 22) &&
     758                vm.slot[_currentScript].number == 32))) {
     759
     760                Actor* guybrush = derefActor(1, "bug 2823309 workaround");
     761                guybrush->stopActorMoving();
     762                guybrush->startAnimActor(guybrush->_standFrame);
     763
     764        }
     765
    748766        // WORKAROUND bug #1878514: When turning pages in the recipe book
    749767        // (found on Blood Island), there is a brief moment where it displays
    750768        // text from two different pages at the same time.