Skip to content

Commit

Permalink
Fix DrawPlayerAnimation
Browse files Browse the repository at this point in the history
is meant to check for cameraTarget, not cameraEnabled
  • Loading branch information
Leonx254 committed Dec 10, 2024
1 parent 1c38f0c commit 4650327
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 @@ -3676,7 +3676,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 4650327

Please sign in to comment.