mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
Fix crash regressions in The Feeble Files, due to _currentTable not been set.
svn-id: r27369
This commit is contained in:
parent
d6e5de3df3
commit
138d4335d7
@ -52,10 +52,12 @@ void AGOSEngine_Simon2::setupVideoOpcodes(VgaOpcodeProc *op) {
|
||||
void AGOSEngine::vc56_delayLong() {
|
||||
uint16 num = vcReadVarOrWord() * _frameCount;
|
||||
|
||||
if (getGameType() == GType_FF && _currentTable->id == 20438 && _vgaCurSpriteId == 13 && _vgaCurZoneNum == 2) {
|
||||
if (getGameType() == GType_FF && _currentTable) {
|
||||
// WORKAROUND: When the repair man comes to fix the car, the game doesn't
|
||||
// wait long enough for the screen to completely scroll to the left side.
|
||||
num *= 2;
|
||||
if (_currentTable->id == 20438 && _vgaCurSpriteId == 13 && _vgaCurZoneNum == 2) {
|
||||
num *= 2;
|
||||
}
|
||||
}
|
||||
|
||||
addVgaEvent(num + _vgaBaseDelay, ANIMATE_EVENT, _vcPtr, _vgaCurSpriteId, _vgaCurZoneNum);
|
||||
|
Loading…
Reference in New Issue
Block a user