Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
LittlePlanetCD committed Dec 11, 2024
2 parents 7b6710b + 4650327 commit 7f12c0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RSDKv3/Script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7f12c0c

Please sign in to comment.