mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Fix some constants around wLinkMode
This commit is contained in:
parent
176257ea6f
commit
77803f571f
@ -1,4 +1,4 @@
|
||||
; link types
|
||||
; wLinkMode
|
||||
const_def
|
||||
const LINK_NULL ; 0
|
||||
const LINK_TIMECAPSULE ; 1
|
||||
|
@ -2088,7 +2088,7 @@ EnterTimeCapsule:
|
||||
call DelayFrames
|
||||
xor a
|
||||
ldh [hVBlank], a
|
||||
inc a
|
||||
inc a ; LINK_TIMECAPSULE
|
||||
ld [wLinkMode], a
|
||||
ret
|
||||
|
||||
|
@ -272,9 +272,9 @@ Request1bpp::
|
||||
|
||||
ldh a, [hTilesPerCycle]
|
||||
push af
|
||||
|
||||
ld a, $8
|
||||
ldh [hTilesPerCycle], a
|
||||
|
||||
ld a, [wLinkMode]
|
||||
cp LINK_MOBILE
|
||||
jr nz, .NotMobile
|
||||
|
@ -691,7 +691,7 @@ Function1163c0:
|
||||
ldh [rSVBK], a
|
||||
farcall ReloadMapPart
|
||||
ld a, [wLinkMode]
|
||||
cp $4
|
||||
cp LINK_MOBILE
|
||||
jr z, .asm_11642a
|
||||
ld a, $8
|
||||
ld [wMusicFade], a
|
||||
|
@ -7322,7 +7322,7 @@ Function11b7e5:
|
||||
farcall Function17d1f1
|
||||
ld a, $1
|
||||
ld [wForceEvolution], a
|
||||
ld a, $2
|
||||
ld a, LINK_TRADECENTER
|
||||
ld [wLinkMode], a
|
||||
farcall EvolvePokemon
|
||||
xor a
|
||||
|
@ -295,7 +295,7 @@ Function17d0f3:
|
||||
farcall Function17d1f1
|
||||
ld a, $1
|
||||
ld [wForceEvolution], a
|
||||
ld a, $2
|
||||
ld a, LINK_TRADECENTER
|
||||
ld [wLinkMode], a
|
||||
farcall EvolvePokemon
|
||||
xor a
|
||||
|
Loading…
Reference in New Issue
Block a user