ASYLUM: Move actorIndex to SharedData

This commit is contained in:
Littleboy 2011-08-04 22:09:40 -04:00 committed by Eugene Sandulenko
parent 8f470f1fcb
commit f106c50b36
No known key found for this signature in database
GPG key ID: 014D387312D34F08
7 changed files with 68 additions and 69 deletions

View file

@ -1196,7 +1196,7 @@ END_OPCODE
//////////////////////////////////////////////////////////////////////////
// Opcode 0x3F
IMPLEMENT_OPCODE(JumpIfActor)
ActorIndex index = (cmd->param1 == kActorInvalid) ? getScene()->getPlayerIndex() : cmd->param1;
ActorIndex index = (cmd->param1 == kActorInvalid) ? getSharedData()->getPlayerIndex() : cmd->param1;
if (_currentQueueEntry->actorIndex != index)
_currentQueueEntry->currentLine = cmd->param2 - 1;