Hack to avoid bad actor crash in o5_walkActorToActor() when using the camel

in the FOA "wits" path. We have a number of these hacks now...

svn-id: r8460
This commit is contained in:
Torbjörn Andersson 2003-06-13 17:35:44 +00:00
parent 6bce6b4069
commit 423ccef9a2

View File

@ -2392,6 +2392,16 @@ void Scumm_v5::o5_walkActorToActor() {
return;
}
if (_gameId == GID_INDY4 && nr == 1 && nr2 == 106 &&
dist == 255 && vm.slot[_currentScript].number == 210) {
// FIXME: Work around an invalid actor bug when using the
// camel in Fate of Atlantis, the "wits" path. The room-65-210
// script contains this: walkActorToActor(1,106,255)
// Once more this is either a script bug, or there is
// some hidden meaning in this odd walk request?
return;
}
a = derefActor(nr, "o5_walkActorToActor");
if (!a->isInCurrentRoom())
return;