Fix "I can't reach that" in Indy3

svn-id: r5387
This commit is contained in:
James Brown 2002-11-03 07:09:05 +00:00
parent bb8172f7c9
commit b99afecb41

View File

@ -1250,10 +1250,17 @@ void Scumm::o5_getActorRoom()
void Scumm::o5_getActorScale()
{
// INDY3 uses this opcode as a wait_for_actor();
if (_gameId == GID_INDY3_256) {
getVarOrDirectByte(0x80); /*FIXME: missing stuff here */
return;
byte *oldaddr = _scriptPointer - 1;
if (derefActorSafe(getVarOrDirectByte(0x80), "o5_wait")->moving) {
_scriptPointer = oldaddr;
o5_breakHere();
}
return;
}
getResultPos();
setResult(derefActorSafe(getVarOrDirectByte(0x80), "o5_getActorScale")->scalex);
}