Skip to content

Commit b507d23

Browse files
committed
Grab static Playstate instead of relying on a1
1 parent 9734b43 commit b507d23

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ASM/src/big_poe.asm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ big_poe_soul_collision:
1515
bne t2, t3, @@no_collision ; if epona is colliding, check if Link is indeed riding
1616
nop
1717

18-
lw v0, 0x1C44(a1) ; v0 = Player
18+
lw t2, 0x34(sp) ; t2 = Playstate
19+
lw v0, 0x1C44(t2) ; v0 = Player
1920
lw t2, 0x066C(v0) ; t2 = player->stateFlags1
2021
sll t3, t2, 8 ; t3 = (player->stateFlags1 & PLAYER_STATE1_23), the riding state
2122
bltzl t3, @@collision

0 commit comments

Comments
 (0)