mirror of https://github.com/pret/pokecrystal.git
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
|
||||
ld [wFacingTileID], a
|
||||
ld c, a
|
||||
; CheckFacingTileForStdScript preserves c, and
|
||||
; farcall copies c back into a.
|
||||
farcall CheckFacingTileForStdScript
|
||||
jr c, .done
|
||||
|
||||
; CheckCutTreeTile expects a == [wFacingTileID], which
|
||||
; it still is after the previous farcall.
|
||||
call CheckCutTreeTile
|
||||
jr nz, .whirlpool
|
||||
farcall TryCutOW
|
||||
|
|
Loading…
Reference in New Issue