| 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 | |