mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
Document that farcall
returns c
in a
for some code (#937)
This commit is contained in:
parent
6a9e929bf9
commit
84a3b335aa
@ -1085,9 +1085,13 @@ TryTileCollisionEvent::
|
|||||||
call GetFacingTileCoord
|
call GetFacingTileCoord
|
||||||
ld [wFacingTileID], a
|
ld [wFacingTileID], a
|
||||||
ld c, a
|
ld c, a
|
||||||
|
; CheckFacingTileForStdScript preserves c, and
|
||||||
|
; farcall copies c back into a.
|
||||||
farcall CheckFacingTileForStdScript
|
farcall CheckFacingTileForStdScript
|
||||||
jr c, .done
|
jr c, .done
|
||||||
|
|
||||||
|
; CheckCutTreeTile expects a == [wFacingTileID], which
|
||||||
|
; it still is after the previous farcall.
|
||||||
call CheckCutTreeTile
|
call CheckCutTreeTile
|
||||||
jr nz, .whirlpool
|
jr nz, .whirlpool
|
||||||
farcall TryCutOW
|
farcall TryCutOW
|
||||||
|
Loading…
Reference in New Issue
Block a user