mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
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:
parent
c8fc484c37
commit
e0b61f1ec3
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user