protected void WalkActorToActor()
{
var nr = GetVarOrDirectByte(OpCodeParameter.Param1);
var nr2 = GetVarOrDirectByte(OpCodeParameter.Param2);
int dist = ReadByte();
if (Game.GameId == GameId.Indy4 && nr == 1 && nr2 == 106 &&
dist == 255 && Slots[CurrentScript].Number == 210)
{
// WORKAROUND bug: 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 again this is either a script bug, or there is some hidden
// or unknown meaning to this odd walk request...
return;
}
var a = Actors[nr];
if (!a.IsInCurrentRoom)
return;
var a2 = Actors[nr2];
if (!a2.IsInCurrentRoom)
return;
WalkActorToActor(nr, nr2, dist);
}