diff --git a/RSDKv3/Script.cpp b/RSDKv3/Script.cpp index 5687bbaf..0d1b9b49 100644 --- a/RSDKv3/Script.cpp +++ b/RSDKv3/Script.cpp @@ -3679,7 +3679,7 @@ void ProcessScript(int scriptCodeStart, int jumpTableStart, byte scriptSub) case FUNC_DRAWPLAYERANIMATION: opcodeSize = 0; if (player->visible) { - if (cameraEnabled == activePlayer) + if (cameraTarget == activePlayer) DrawObjectAnimation(scriptInfo, entity, player->screenXPos, player->screenYPos); else DrawObjectAnimation(scriptInfo, entity, (player->XPos >> 16) - xScrollOffset, (player->YPos >> 16) - yScrollOffset);