SCUMM: Fixed regression caused by Pete Workaround

The original commit containing the Pete Wheeler hotfix for the Baseball gmaes has caused a regression where batting with any other bat as Pete Wheeler would slow down his swinging animation after hitting the ball.  Whoops.  This fixes the regression by adding another check to determine whether he is bunting or not.
This commit is contained in:
Little Cat 2021-04-26 06:05:35 -03:00 committed by Filippos Karapetis
parent c8fc484c37
commit e0b61f1ec3

View File

@ -1424,7 +1424,7 @@ void ScummEngine_v6::o6_getAnimateVariable() {
_currentRoom == ((_game.id == GID_BASEBALL2001) ? 4 : 3) && \
vm.slot[_currentScript].number == 2105 && \
a->_costume == ((_game.id == GID_BASEBALL2001) ? 107 : 99) && \
readVar(0x8000 + 5) != 0)
readVar(0x8000 + 5) != 0 && readVar(0x8000 + 22) == 4)
push(1);
else
push(a->getAnimVar(var));